PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Nov 26, 2020 11:22 pm 
Offline

Joined: Fri Mar 09, 2018 12:51 pm
Posts: 6
I have to port rdlc reports from .NET to CORE. Since rdlc are not supported yet, I tried to recreate them using Migradoc.

The original one:
Attachment:
dots_or.PNG
dots_or.PNG [ 3.83 KiB | Viewed 2889 times ]


My current result is the following:
Attachment:
dots_new.PNG
dots_new.PNG [ 6.91 KiB | Viewed 2889 times ]


I created png dots, converted them to base64 strings and added them using the following code:
Code:
cell.AddImage(base64StringVariable)


Since the size of each image is very low, just 12x12 pixels, the pdf has a quite poor quality.
Do you have some hint in order to improve quality?


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 27, 2020 6:58 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
emaborsa wrote:
Since the size of each image is very low, just 12x12 pixels, the pdf has a quite poor quality.
Do you have some hint in order to improve quality?
The obvious hint: use larger images.

To prevent Adobe Reader from anti-aliasing the images, set "image.Interpolate = false;" for the image or disable image anti-aliasing in Adobe Reader.

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


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 27, 2020 8:30 am 
Offline

Joined: Fri Mar 09, 2018 12:51 pm
Posts: 6
Thanks.
...I apologize. Didn't see the properties Height and Width of the returned Image object.
However, I can't find "image.interpolate"


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

All times are UTC


Who is online

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