PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 09, 2020 8:21 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Dec 21, 2016 2:56 pm 
Offline

Joined: Thu Jun 23, 2016 12:51 pm
Posts: 8
Hi there,

MigraDoc is a very cool library but I have a big problem.
I export images (bmp, pdf, etc) to my pdf-document. When I open my doucument or print it out my images are a kind of blurry.

Here is a screenshot.
Attachment:
blurry.png
blurry.png [ 27.91 KiB | Viewed 2936 times ]


Did anyone knows this problem? Can anyone help me?

Greez and best regards
JoseMan


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 21, 2016 5:31 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 549
Location: CCAA
Hi!
JoseMan wrote:
When I open my doucument or print it out my images are a kind of blurry.
MigraDoc includes the images unaltered. Adobe Reader tries to optimise the images.

Use
Code:
image.Interpolate = false;
to disable this optimisation.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 22, 2016 6:45 am 
Offline

Joined: Thu Jun 23, 2016 12:51 pm
Posts: 8
Hi TH-Soft,

thanks for your replie, but this method doesn't exist.
Maybe I've got an old version?
I use the image-class from MigraDoc:
Code:
MigraDoc.DocumentObjectModel.Shapes.Image image = section.AddImage(memoryStream);


Greez


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 22, 2016 2:22 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 549
Location: CCAA
JoseMan wrote:
thanks for your replie, but this method doesn't exist.
Sorry, my fault. This is a property of PDFsharp's XImage class and you cannot set it from MigraDoc yet.

If you use the MigraDoc source code, set this option to false in the XImage class.

For a quick test you can disable image smoothing in the Adobe Reader options.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 23, 2016 12:19 pm 
Offline

Joined: Thu Jun 23, 2016 12:51 pm
Posts: 8
Okay. Thanks...I'll try it


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 23 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