Graphics Quality when exporting to PDF

Stimulsoft Reports.NET discussion
Post Reply
Sergey
Posts: 2
Joined: Sat Mar 27, 2010 4:51 pm
Location: Ukraine

Graphics Quality when exporting to PDF

Post by Sergey »

Hi,

When I export report as PDF, the quality of graphics is not enough: my images contain text and text is very hard to read because of distortions caused by graphics compression.
As I know, several different algorithms of graphics compression can be used in PDF. Some of them do not affect quality, but as I understand, in StimulSoft by default JPEG with data loss is used, so the final quality is not good.

Does anybody knows how to improve quality of graphics during rendering and export report to PDF? (Either change to another algorithm or increase JPEG quality).

Thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Graphics Quality when exporting to PDF

Post by Jan »

Hello Sergey,

Our report engine use JPEG method by default. You can change it Image Compression property of pdf export settings. Please change it to Flate value.

Thank you.
Sergey
Posts: 2
Joined: Sat Mar 27, 2010 4:51 pm
Location: Ukraine

Graphics Quality when exporting to PDF

Post by Sergey »

Thank you Jan

This really helped me with graphics quality, but degradated performance and memory consumption significantly.
Ok, this is always a trade off, at least I can give choise to my users :)

Thanks again,
Sergey
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Graphics Quality when exporting to PDF

Post by Andrew »

Hello,

When using Jpeg you may set the Image quality to 100% (the default value is 75%), this will improve the quality of images.
In version 2010.1 new algorithm of monochrome images compression was introduced. This considerably decreases the size of a file.

Thank you.
gurdeeptoor
Posts: 2
Joined: Tue Apr 06, 2010 7:20 am

Graphics Quality when exporting to PDF

Post by gurdeeptoor »

Hello

I do it with following code before exporting to pdf. I am using 2009 version.

Dim Report As New StiReport

Dim sqlcon As SqlConnection = New SqlConnection

Report.Load("C:\MyReports\MyReport.mrt")

Report.RegData("Connection", sqlcon)

Report.Compile()

Report.Render()

Dim settings As StiPdfExportSettings = New StiPdfExportSettings()

settings.ImageQuality = 2.5F '//Default 0.75
settings.ImageResolution = 200 '//Default 100

Report.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, "C:\MyReports\Report1.pdf", settings)


Hope that helps
Gurdeep Toor
Post Reply