Convert PDF to GD Native Image

Example requests & Code samples for GdPicture Toolkits.
Post Reply
NicFarrell
Posts: 3
Joined: Fri Jun 28, 2013 1:09 am

Convert PDF to GD Native Image

Post by NicFarrell » Fri Jun 28, 2013 1:14 am

I recently upgraded from version 5 to 9 and it seems it is no longer possible to convert a PDF into a GD native image from the GD Viewer.

In version 5 it was a simple matter of loading the image using DIsplayFromPdfFile, and then looping through the pages and calling CreateClonedImage off of the GdViewer's GetNativeImage.

Is this or something equivalent still possible with the Document Imaging toolkit?

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: Convert PDF to GD Native Image

Post by Cedric » Fri Jun 28, 2013 12:57 pm

It has to be taken the other way around, the first step is to load your file into a GdPicturePDF object (or a GdPictureImaging, depending on the file type) with the relevant method and then sync the GdViewer with that object using the DisplayFromGdPicturePDF or DisplayFromGdPictureImage methods.
GdViewer is only a viewer and should be used as such, in order to manipulate the files you're viewing in it, you have to load them into the relevant object before anything else.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests