Loading...

Determining if a file is thumbnailable

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

Determining if a file is thumbnailable

Postby jeffog123 » Mon Apr 19, 2010 9:53 pm

I'm converting to GdViewer from another thumbnailer and am trying to match abilities so as to minimize the impact on my application. The first question (there will be others!) is if there's a way to tell if a file is thumbnailable without getting the "This PDF seems to be corrupted" message.

Using the Imager, I first attempt to CreateImageFromFile. If that fails (status != 0) I then attempt to DisplayFromPdfFile. This is what causes the error message to appear. I don't want to look at the file extension because in my world that could be "wrong" or missing. I just want to verify if a file is thumbnailable or not.
jeffog123
 
Posts: 2
Joined: Mon Apr 19, 2010 7:26 pm

Re: Determining if a file is thumbnailable

Postby Loïc » Wed Apr 21, 2010 11:52 am

Hi,

I am not sure to understand correctly your issue. However, if you want to be able to view both PDF & image from the GdViewer you can use the DisplayFromFile method.
If it is not your goal please give more precision on what you are trying to do.

Hope this helps,

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