Code: Select all
string file = "C:\\Users\\me\\Desktop\\PDFtest\\mouse.pdf";
string image = "C:\\Users\\me\\Desktop\\PDFtest\\omg.jpg";
try
{
GflAx.GflAxClass g = new GflAx.GflAxClass();
g.EpsDpi = 150;
g.LoadBitmap(file);
g.SaveFormat = GflAx.AX_SaveFormats.AX_JPEG;
g.SaveBitmap(image);
}
catch (Exception ex)
{
Console.WriteLine("Error: "+ex);
}
The PDF I'm trying to generate thumbnails from is kind of like a Powerpoint presentation in PDF format, so the pages are kind of horizontal. However, the pic I generate is vertical and the image itself is not complete. Here is a link to that image: http://i42.tinypic.com/4ub0jm.jpg.
I've tried using the LoadThumbnail() method to no avail.
Thanks in advance!