PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Preview existing pdf files - is it possible ?
http://forum.pdfsharp.de/viewtopic.php?f=2&t=871
Page 1 of 1

Author:  rafalkr [ Mon Sep 14, 2009 9:06 pm ]
Post subject:  Preview existing pdf files - is it possible ?

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 ?

Author:  Thomas Hoevel [ Tue Sep 15, 2009 7:43 am ]
Post subject:  Re: Preview existing pdf files - is it possible ?

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

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