Large file size

Large file size

Forum member · Apr 18, 2007
When we generate pdf documents with dynamic pdf generator for .NET, we observed that the file size is pretty large for very few pages (5-6). We have an image in the report that appears on all the pages. Also we used 2 truetype fonts. As a result of the large file size, the document prints very slowly. Are there any ways to reduce the file size or to make the document print faster. Also it would be really helpful if you can provide us with a list of various optimisation techniques, if any, available to generate pdf documents with this tool. Thanks Pradeepa.

Re: Large file size

Support · Apr 18, 2007
Hello Pradeepa, From what you described it sounds like you may not be using you resources as efficiently as possible. Specifically you want to make sure that since you are using the same image on multiple pages that the image data is shared for each page (not stored multiple times for each page). This means that you will want to use the ImageData object when creating your Image object. And for the font you want to also make sure that you are not defining the font multiple times within the document. Any one font should only be defined once. Both of these, as well as other peformance considerations, are written about in our help documentation here, http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Performance%20Considerations.html . Thanks, ceTe Software Support Team