Page 1 of 1

PXCV_DrawPageToDC equivalent in Core Api

Posted: Thu Dec 01, 2016 8:28 pm
by mmasood
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

Re: PXCV_DrawPageToDC equivalent in Core Api

Posted: Fri Dec 02, 2016 1:58 pm
by Sasha - Tracker Dev Team
Hello mmasood,

Here's what you will need:
https://sdkhelp.pdf-xchange.com/vie ... wToIXCPage
https://sdkhelp.pdf-xchange.com/vie ... e_DrawToDC

Here's the forum thread that contains these methods usage:
https://www.pdf-xchange.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

Re: PXCV_DrawPageToDC equivalent in Core Api

Posted: Mon Dec 05, 2016 9:00 pm
by mmasood
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

Re: PXCV_DrawPageToDC equivalent in Core Api

Posted: Tue Dec 06, 2016 5:55 am
by Sasha - Tracker Dev Team
Hello mmasood,

Well these should be the interface that you are looking for:
https://sdkhelp.pdf-xchange.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

Re: PXCV_DrawPageToDC equivalent in Core Api

Posted: Tue Dec 06, 2016 9:04 pm
by mmasood
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

Re: PXCV_DrawPageToDC equivalent in Core Api

Posted: Wed Dec 07, 2016 3:45 pm
by Tracker Supp-Stefan
Hello M,

We actually have a simple Editor SDK:
https://www.pdf-xchange.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