Loading...

Display a page of a PDF file on a device context (HDC)

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Display a page of a PDF file on a device context (HDC)

Postby glentek » Tue Jun 19, 2007 1:45 am

Here is what I need to do in GdPicture.

Load a multipage PDF file from disk.
Display only the first page of the PDF file on a device context (hDC).

Can someone provide a code snippet that will show the methods I must call?

Thank you.
glentek
 
Posts: 5
Joined: Sat Jun 16, 2007 2:37 am

Postby Loïc » Tue Jun 19, 2007 2:03 am

Code: Select all
Dim oGdPicture as New gdpicturepro.cGdPicture

GdViewer1.DisplayFromPdfFile("pdffile.pdf")
oGdPicture.SetNativeImage(GdViewer1.GetNativeImage())
oGdPicture.DisplayImageOnHDC(hdc)


...



Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby glentek » Tue Jun 19, 2007 3:27 am

Thanks for your quick replies during my evaluation period. Your service is excellent. I just purchased gdPicture Pro at share-it.

I downloaded the installation file from share-it. The size of the file is 5290kb. The size of the evaluation installation file is 6217kb. Can you tell my why they are different sizes? Which one should I use? Thanks.
glentek
 
Posts: 5
Joined: Sat Jun 16, 2007 2:37 am

Postby Loïc » Tue Jun 19, 2007 10:51 am

Thank you Glen. :wink:

You need as possible to use the version from the GdPicture web site. It will be always the last.


Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron