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

PDFSharp / MigraDoc Rendering in PDF and WPF
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3556
Page 1 of 1

Author:  KruNo [ Mon Mar 20, 2017 1:17 pm ]
Post subject:  PDFSharp / MigraDoc Rendering in PDF and WPF

Hello,

I would like to program a document in WPF and it should be equal in WPF and PDF.

Is it possible to render images for WPF using PDFSharp and MigraDoc?

I see in the documentation only a note, that pictures cannot be rendered in WPF (http://www.pdfsharp.net/wiki/Preview-sample.ashx) is that right?


Best Regards

KruNo

Author:  Thomas Hoevel [ Mon Mar 20, 2017 1:43 pm ]
Post subject:  Re: PDFSharp / MigraDoc Rendering in PDF and WPF

Hi!
KruNo wrote:
I see in the documentation only a note, that pictures cannot be rendered in WPF (http://www.pdfsharp.net/wiki/Preview-sample.ashx) is that right?
Wrong.
PDF images cannot be rendered in the WPF screen preview because WPF does not handle PDF images. Other formats (PNG, JPG, BMP, TIF, ...) are showing.

Do not use PDF images if you need a correct page preview under WPF.

Author:  KruNo [ Mon Mar 20, 2017 2:12 pm ]
Post subject:  Re: PDFSharp / MigraDoc Rendering in PDF and WPF

Hello Thomas,

thank you for your answer.

What library do I need? Only PDFSharp or?

Author:  Thomas Hoevel [ Mon Mar 20, 2017 3:10 pm ]
Post subject:  Re: PDFSharp / MigraDoc Rendering in PDF and WPF

KruNo wrote:
What library do I need? Only PDFSharp or?
You linked to the PDFsharp sample - no MigraDoc needed when you take that approach.

There also is a MigraDoc sample:
http://www.pdfsharp.net/wiki/DocumentViewer-sample.ashx

Use PDFsharp or MigraDoc? See here:
http://www.pdfsharp.net/Overview.ashx

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