I'm receiving an "Unknown Format" error when the code gets to the following LoadBitmap line
I am running ghostscript 8.60, and i've so far attempted to use glax 2.2, 2.7 and 2.90. I've attempted to load three different PDFs, all of which open fine in Adobe, however I don't seem to be able to get them to load here.
Code: Select all
internal static void Generate(string pdfFile, string imageFile)
{
log4net.LogManager.GetLogger("Thumbnailer").InfoFormat("Creating thumbnail {0} for {1}", imageFile, pdfFile);
GflAx.GflAxClass g = new GflAx.GflAxClass();
g.EpsDpi = 72;
g.Page = 1;
g.LoadBitmap(pdfFile);
g.SaveFormat = GflAx.AX_SaveFormats.AX_JPEG;
g.SaveBitmap(imageFile);
g = null;
log4net.LogManager.GetLogger("Thumbnailer").InfoFormat("Created thumbnail {0} for {1}", imageFile, pdfFile);
}
Thanks
Heath