Hi,
I wanted to load my PDF file to the GdViewer and I searched on your online documentation and I got this
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
GdPictureStatus status = oGdPicturePDF.LoadFromFile("MyPDF.pdf", false);
if (status != GdPictureStatus.OK)
{
MessageBox.Show("Error opening the PDF", "Error " + status.ToString());
return;
}
but it seems that it's not working..what am I missing?
Any help would be greatly appreciated.
Here's the link of my sample app for you to understand it better.
https://drive.google.com/file/d/0B1tWyB ... sp=sharing
Thank you.
Load PDF document on GdViewer
Re: Load PDF document on GdViewer
Hi,
You are not displaying the loaded document. For that you can add this line at the end of your snippet:
Kind regards,
Loïc
You are not displaying the loaded document. For that you can add this line at the end of your snippet:
Code: Select all
gdViewer1.DisplayFromGdPicturePDF(oGdPicturePDF);
Loïc
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Re: Load PDF document on GdViewer
Works like a charm.. Thank you very much...
Who is online
Users browsing this forum: No registered users and 1 guest