Compression

Compression

Forum member · Aug 3, 2011
I have an application that takes user input and merges it with some other specs to generate a simulated paper form that can be filled out on line or printed. When it is generated and saved to disk (or byte stream), it doesn't matter what compression level I use, the single page document is over 350K. This is way too big for a single page document. I've generated reports using DynamicPDF that were 100 pages that weren't this big. The form contains, Labels, FormattedTextAreas, and possibly some solid color rectangles and/or small circles that simulate radio buttons. Any suggestions?

Re: Compression

Support · Aug 3, 2011
Hello, Specifying the compression on the document stream itself may decrease the total size of the PDF slightly but not to a greater extent. The Document.CompressionLevel will only affect the compression level of the page contents such as text. It will not have any effect on image compression. This is because images are treated in a very highly efficient pass through process and they are not resampled. Thanks, ceTe Software Support Team

Re: Compression

Forum member · Aug 3, 2011
There are no images on the form. This document should be 30k-40k at the very most. As I posted originally, it's a one page document that contains labels, formatted text areas, possibly some filled in rectangles, and a few very small circles. What is making it so big?

Re: Compression

Support · Aug 3, 2011
Hello, Are you creating the PDF document from scratch or using an existing PDF document? Please send us the source code you are using and any template PDF to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it further. Are you using any fonts that are being embedded to the output PDF document? That may result in increase of the output file size. Thanks, ceTe Software Support Team

Re: Compression

Forum member · Aug 3, 2011
It is the embedded font data. Thanks very much for pushing me in the right direction.