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

Discussions about image processing and document imaging.
Post Reply
glentek
Posts: 5
Joined: Sat Jun 16, 2007 2:37 am

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

Post by 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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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

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

Post by 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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests