Compression

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v6)  /  Compression

DynamicPDF CoreSuite for .NET (v6) Forum

 Aug 03 2011 3:01 PM
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?
 Aug 03 2011 3:45 PM
Posted by a ceTe Software moderator
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
 Aug 03 2011 3:51 PM
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?
 Aug 03 2011 4:18 PM
Posted by a ceTe Software moderator
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 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
 Aug 03 2011 4:27 PM
It is the embedded font data.  Thanks very much for pushing me in the right direction.

All times are US Eastern Standard time. The time now is 5:09 PM.