Unknown format

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

Moderators: helmut, XnTriq, xnview

Unknown format

Postby Guido » Fri Nov 18, 2011 12:25 pm

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
Guido
 
Posts: 2
Joined: Fri Nov 18, 2011 12:11 pm

Re: Unknown format

Postby xnview » Mon Nov 21, 2011 9:35 am

It's a known issue of GFLAx
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26777
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Unknown format

Postby vivek.kumar » Tue Oct 09, 2012 11:17 am

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
vivek.kumar
 
Posts: 1
Joined: Tue Oct 09, 2012 11:15 am

Re: Unknown format

Postby xnview » Tue Oct 09, 2012 11:34 am

Do you have last GFLax?
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26777
Joined: Mon Oct 13, 2003 7:31 am
Location: France


Return to GFL SDK

Who is online

Users browsing this forum: No registered users and 1 guest