MultiPages PDF

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

Moderators: XnTriq, xnview

Marcio
Posts: 1
Joined: Mon Mar 21, 2011 6:22 pm

MultiPages PDF

Post by Marcio »

Hi, i hope somebody can help me...i read the forum, but i don't found the solution...
There is my code:

string pdf_file = "C:\\test.pdf";
string imagePath = "C:\\TMP\\result.jpg";

GflAx.GflAx oGflAx = new GflAx.GflAx();
oGflAx.EpsDpi = 150;
oGflAx.LoadBitmap(pdf_file);
oGflAx.SaveJPEGQuality = 100;
oGflAx.SaveFormat = GflAx.AX_SaveFormats.AX_JPEG;
oGflAx.SaveBitmap(imagePath);

where the pdf is a multipage, with a lot off pages, but the result of this process show only the first page of the pdf.
it's any wrong with the command???

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

Re: MultiPages PDF

Post by xnview »

JPEG can only save 1 page.
you can use Page to load the page wanted...
Pierre.