Hi
Daniel,
Thank you very much for considering Aspose.
In order to view a PDF file, using PdfViewer, in your windows or web forms application, you'll have to convert the pages into images using either DecodePage or DecodeAllPages method. After that you'll be able to show this image using any image control. You can find a sample below which shows you how to decode a page into image.
PdfViewer v = new PdfViewer();
v.OpenPdfFile("file1.pdf");
System.Drawing.Bitmap b = v.DecodePage(1);
Now, you can assign this image to any image control.
I hope this helps. If you have any further questions, please do let us know.
Regards,
Shahzad Latif - [
Follow me on Twitter!]
Support Developer/Developer Evangelist
Aspose Sialkot Team
Aspose - Your File Format Experts
Keep in touch! We're on
Twitter and
Facebook