PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Mar 20, 2017 1:17 pm 
Offline

Joined: Mon Mar 20, 2017 1:08 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 20, 2017 1:43 pm 
Offline
PDFsharp Guru
User avatar

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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 20, 2017 2:12 pm 
Offline

Joined: Mon Mar 20, 2017 1:08 pm
Posts: 4
Hello Thomas,

thank you for your answer.

What library do I need? Only PDFSharp or?


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 20, 2017 3:10 pm 
Offline
PDFsharp Guru
User avatar

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

_________________
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: Google [Bot] and 143 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