I'm using GflAx.dll to convert pdf-documents to png. On 32bit Windows this is no problem but on Windows 7 64 bit I'm receiving the error "GflAx error: unknown format". The error is given while executing gflAx.LoadBitmap(selectedFilePath). Ghostscript 64 bit is installed and GflAx.dll is registered. I know for sure that the variable selectedFilePath has a valid path assigned.
My code is:
Code: Select all
try
{
GflAx.GflAx gflAx = new GflAx.GflAx();
gflAx.EpsDpi = 100;
gflAx.SavePNGCompression = 7;
gflAx.Page = 1;
gflAx.LoadBitmap(selectedFilePath);
gflAx.SaveFormat = GflAx.AX_SaveFormats.AX_PNG;
gflAx.SaveBitmap(image);
pictureBox.Left = 0;
pictureBox.Top = 0;
pictureBox.ImageLocation = Path.GetFullPath(image);
}
catch (Exception ex)
{
MessageBox.Show("GflAx error: " + ex.Message);
}
Thanks,
Guido