Failed to use sample code

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Torben
Posts: 15
Joined: Thu Oct 29, 2009 3:59 pm

Failed to use sample code

Post by Torben » Thu Feb 18, 2010 10:59 am

I am trying to use the sample PDF to TIFF_CS from GdPicture.NET V6.

However I get the message Can't open file: xxxx when trying to read a file.

Debugging the code I find that
if ( oGdViewer.DisplayFromFile( InputFilePath ) == GdPicture.GdPictureStatus.OK )
does not return OK

I am now trying
Int32 curImage = oGdPictureImaging.CreateGdPictureImageFromFile("");

Trying to open a PDF file gives me curImage = 0

Trying to open a JPEG gives me curImage = 1

So it seems that I am not able to read PDF files. Have I missed something??

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

Re: Failed to use sample code

Post by Loïc » Thu Feb 18, 2010 11:37 am

Hi Torben,

It is working for me. Here what I done:

- Open the project
- Replace XXX by valid license key (commercial or demo)
- Build the project
- Open PDF, start conversion
- A file should be created in c:\test.tif

Hope this helps,

Loïc

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests