PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon May 13, 2024 6:01 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Sep 14, 2009 9:06 pm 
Offline

Joined: Mon Sep 14, 2009 8:59 pm
Posts: 1
Hi,
I cannot find example/way how to display loaded pdf file in C#.

I am using
PdfDocument doc = PdfReader.Open

the doc object is reading properly the file but I don;t know how to display it in the WinForm windows.
I created

PdfSharp.Forms.PagePreview pagePreview; //as a class attribute

//in constructor I added
this.pagePreview = new PdfSharp.Forms.PagePreview();
this.Controls.Add(this.pagePreview);
this.pagePreview.PageSize = PageSizeConverter.ToSize(PageSize.A4);


Now I see a white paper but how to put there a loaded file ?
Is it possible ?


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 15, 2009 7:43 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
Short answer: no.

Long answer:
http://www.pdfsharp.net/wiki/PDFsharpFA ... DF_files_3

http://www.pdfsharp.net/wiki/PrintPdfFile-sample.ashx

http://www.pdfsharp.net/wiki/Preview-sample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 84 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