Unknown format

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Post Reply
Guido
Posts: 2
Joined: Fri Nov 18, 2011 12:11 pm

Unknown format

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Unknown format

Post by xnview »

It's a known issue of GFLAx
Pierre.
vivek.kumar
Posts: 1
Joined: Tue Oct 09, 2012 11:15 am

Re: Unknown format

Post 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
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Unknown format

Post by xnview »

Do you have last GFLax?
Pierre.
Post Reply