problems with pdf files

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

Moderators: XnTriq, xnview

User avatar
madiazg
Posts: 82
Joined: Wed Jul 18, 2007 8:00 pm
Location: Tenerife - Islas Canarias
Contact:

problems with pdf files

Postby madiazg » Sun Dec 15, 2013 1:58 pm

Hi,
I'm trying to open a pdf file but always returns me the Error 6 (unknown format). I use version 3.92 of libgfl. The code (in Delphi) is as follows:

Code: Select all

gflGetDefaultLoadParams(mLoadOption);
mError := gflLoadBitmap(Pchar(FileNamePDF),mOriBitmap, mLoadOption, mInformation);
if mError =  GFL_NO_ERROR then
begin
  Label11.Caption := IntToStr(mInformation.NumberOfImages);
end else label11.Caption := 'Error: ' + inttostr(mError);
gflFreeBitmapData(mOriBitmap);

pdf file for example: https://mega.co.nz/#!cFczERbY!WQOF-krKwvXUdGylSfWN4jGCyllgfP61zoPb8ACQL40

Can you tell me what is the problem?

Regards...
Miguel Angel

User avatar
xnview
Author of XnView
Posts: 27349
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: problems with pdf files

Postby xnview » Mon Dec 16, 2013 8:58 am

do you have installed ghostscript?
Pierre.

User avatar
madiazg
Posts: 82
Joined: Wed Jul 18, 2007 8:00 pm
Location: Tenerife - Islas Canarias
Contact:

Re: problems with pdf files

Postby madiazg » Thu Dec 19, 2013 9:04 pm

I have not installed. Do I need to install it?

User avatar
xnview
Author of XnView
Posts: 27349
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: problems with pdf files

Postby xnview » Fri Dec 20, 2013 9:35 am

madiazg wrote:I have not installed. Do I need to install it?

yes
Pierre.


Return to “GFL SDK”

Who is online

Users browsing this forum: No registered users and 1 guest