PXCV_DrawPageToDC equivalent in Core Api

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

PXCV_DrawPageToDC equivalent in Core Api

Post by mmasood » Thu Dec 01, 2016 8:28 pm

Hi,

I am looking into converting some old Tracker code to the latest release of Core Api. I could not find equivalent function that I could use for PXCV_DrawPageToDC. Is there anything in the Core Api library that I should be using? Or should I be using some other library?

One other function that i need to convert is PXC_AddEnhMetafile.

Regards,
M

User avatar
Sasha - Tracker Dev Team
User
Posts: 4532
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PXCV_DrawPageToDC equivalent in Core Api

Post by Sasha - Tracker Dev Team » Fri Dec 02, 2016 1:58 pm

Hello mmasood,

Here's what you will need:
http://sdkhelp.tracker-software.com/vie ... wToIXCPage
http://sdkhelp.tracker-software.com/vie ... e_DrawToDC

Here's the forum thread that contains these methods usage:
https://www.tracker-software.com/forum3 ... 66&t=26983
Also, you can additionally search the forums (not just the Core API thread) for these methods to find more samples.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: PXCV_DrawPageToDC equivalent in Core Api

Post by mmasood » Mon Dec 05, 2016 9:00 pm

Hi Alex,

I am looking into the links that you provided and will get back to you on that.

Here are a few more functions that I cannot find replacements for:

1. PXC_AddEnhMetafile
2. PXC_GetImageDimension

Looking forward for your reply.

Regards,
M

User avatar
Sasha - Tracker Dev Team
User
Posts: 4532
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PXCV_DrawPageToDC equivalent in Core Api

Post by Sasha - Tracker Dev Team » Tue Dec 06, 2016 5:55 am

Hello mmasood,

Well these should be the interface that you are looking for:
http://sdkhelp.tracker-software.com/view/PXV:IPXC_Image
If you look in the See Also section, there are several methods that allow adding the Image from different sources.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: PXCV_DrawPageToDC equivalent in Core Api

Post by mmasood » Tue Dec 06, 2016 9:04 pm

Hi Alex,

I am currently updating the code from Pro SDK 5 to Core Api and i have looked at the code that you provided but could not get anything to work. Regarding the PXCV_DrawPageToDC function, can you please provide a sample that will do the following with the most current Core Api SDK?


1. Open a PDF file
2. Render the pages one by one to the printer

Regards,
M

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13663
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXCV_DrawPageToDC equivalent in Core Api

Post by Tracker Supp-Stefan » Wed Dec 07, 2016 3:45 pm

Hello M,

We actually have a simple Editor SDK:
https://www.tracker-software.com/produc ... simple-sdk
Which was specifically designed to use the same method names as the Simple Viewer SDK - so it should be pretty straight forward to port your code from the Viewer Simple SDK to the Editor Simple SDK. Have you tried that one?

Regards,
Stefan

Post Reply