PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

PDFSharp PagePreview from PDFSharp Document
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2025
Page 1 of 1

Author:  dlopez [ Sun May 20, 2012 12:21 pm ]
Post subject:  PDFSharp PagePreview from PDFSharp Document

Hi,

I want to know if there is any way to use the PagePreview object to show a Page from a PDFDocument object.

The idea is that the PDFDocument is created and then show it on the page preview, print it or save depending of what the user wants.

Author:  Thomas Hoevel [ Mon May 21, 2012 7:11 am ]
Post subject:  Re: PDFSharp PagePreview from PDFSharp Document

Hi!

The Preview works for new documents (create new document, preview it, create PDF if user likes it).
You cannot "preview" PDF documents.

See here:
viewtopic.php?f=2&t=1995&hilit=PagePreview
search.php?keywords=PagePreview&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search

Author:  dlopez [ Mon May 21, 2012 7:33 am ]
Post subject:  Re: PDFSharp PagePreview from PDFSharp Document

OK, but since the PagePreview can't show more than one page at the time, I was thinking that maybe I could create the PDFDocument (without saving it) and the select the page that I wanted to preview.

Author:  Thomas Hoevel [ Mon May 21, 2012 9:44 am ]
Post subject:  Re: PDFSharp PagePreview from PDFSharp Document

You can save the PDF and view it with Adobe Reader or any other PDF viewer.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/