Page 1 of 1

pdf export size for barcodes

Posted: Tue Feb 26, 2013 9:27 am
by Jozef Balga
Hello!

I am working with a report template, where several hundred barcodes can be displayed in the generated pdf document. Unfortunately the size of the generated document is too huge, about 10 MB for 100 barcodes. Is there any way to optimize the generated document size?
I use the following pdf export settings:

Code: Select all

StiPdfExportSettings settings = new StiPdfExportSettings();
settings.ImageQuality = 1.0f;
settings.ImageResolution = 200;
settings.KeywordsString = DateTime.Today.ToString("dd.MM.yyyy HH:mm:ss");
settings.ExportRtfTextAsImage = true;
settings.EmbeddedFonts = false;
The barcodes - type Code128c - are positioned on a databad with 3 colums and approximately 36 barcodes are printed on an A4 page.
Thank you for your help.

Jozef

Re: pdf export size for barcodes

Posted: Wed Feb 27, 2013 11:46 am
by HighAley
Hello.

Please, try to set also next export property:

Code: Select all

ImageCompressionMethod = StiPdfImageCompressionMethod.Flate;
Thank you.