PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Wed Dec 03, 2025 6:14 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun May 20, 2012 12:21 pm 
Offline

Joined: Sun May 20, 2012 12:13 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 21, 2012 7:11 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3139
Location: Cologne, Germany
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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon May 21, 2012 7:33 am 
Offline

Joined: Sun May 20, 2012 12:13 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 21, 2012 9:44 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3139
Location: Cologne, Germany
You can save the PDF and view it with Adobe Reader or any other PDF viewer.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 297 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group