optimizing pdf file size
Posted: Wed Jul 18, 2012 11:47 am
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
We also experimented with 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.
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;
Code: Select all
StiPdfImageCompressionMethod.Flate
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.