I need to load a PDF file, then create a GdPictureImage and display the image in a GdViewer.
I use the newest GdPicturePDF and I'll write the following code:
Code: Select all
int imageId = 0;
if (gdPDF.LoadFromFile(filePath, false) == GdPictureStatus.OK)
imageId = gdPDF.RenderPageToGdPictureImage(200, false);
if (imageId > 0)
GdViewerArea.DisplayFromGdPictureImage(imageId);
So I have some problems when the file has more than one page, because only the first page is loaded in the GdViewer.
I tried to loop all the pages of PDF, but I don't understand if I can obtain only one imageId.
Please anyone can help me?
Thanks a lot.
Michela