Page 1 of 1

Unknown format

Posted: Fri Nov 18, 2011 12:25 pm
by Guido
Hi,

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);
}
What am I doing wrong?

Thanks,

Guido

Re: Unknown format

Posted: Mon Nov 21, 2011 9:35 am
by xnview
It's a known issue of GFLAx

Re: Unknown format

Posted: Tue Oct 09, 2012 11:17 am
by vivek.kumar
Hi, anyone has got the solution of this problem. I have wasted 3 days and not able to find the solution or work around for this.

Thanks in advance for your help.

Regards,
Vivek

Re: Unknown format

Posted: Tue Oct 09, 2012 11:34 am
by xnview
Do you have last GFLax?