optimizing pdf file size

Stimulsoft Reports.NET discussion
Post Reply
Jozef Balga
Posts: 56
Joined: Fri May 27, 2011 8:33 am
Location: Bratislava, Slovakia

optimizing pdf file size

Post by Jozef Balga »

Hello!

We use Stimulsoft Reports to generate reports and export them to PDF from C# code. We have several master reports with company logos (as jpeg images) and texts, and many inherited reports with the report body. Our problem is related to PDF export time and file size. The report documents are generated on-demand, so the document generation time is very important, also we store the documents in a relational database, so the file size matters too. We try to optimize the pdf export time, but we were unable to meet our target so far. We use the following pdf export settings

Code: Select all

settings.ImageQuality = 1.0f;
settings.ImageResolution = 600;
settings.EmbeddedFonts = false;
We also experimented with

Code: Select all

StiPdfImageCompressionMethod.Flate
which resulted better image quality and file size, but the export time was significantly worse and unacceptable for us. We also tried displaying images as rich text (containing vector images), but the pdf file size was really huge. I would like to ask for help on the following questions:

1. Is there any other way to keep the exported file size small and the export time as short as possible at the same time?
2. Does the type of images (jpeg/emf/wmf) in our master reports affect the generated file size and image quality?
3. Which image types are the most suitable for PDF export?

Thank You for Your answer.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: optimizing pdf file size

Post by HighAley »

Hello.
Jozef Balga wrote:1. Is there any other way to keep the exported file size small and the export time as short as possible at the same time?
High Image Resolution increase size of file very much. More often 300 dpi is enough.
Jozef Balga wrote:2. Does the type of images (jpeg/emf/wmf) in our master reports affect the generated file size and image quality?
No, it doesn't.
Jozef Balga wrote:3. Which image types are the most suitable for PDF export?
It's no matter because all images are packed again with defined resolution and jpeg/flate codec.
Thank you.
Post Reply