When saving a pdf that is potentially 3000 or more pages, how can I ensure the Document object doesn't get too large?
Can I write to a file as I create the pdf?
Saving potientially large PDFs
Re: Saving potientially large PDFs
Support · Apr 15, 2016Hello,
When you build a PDF using the Document object, the entire object is held in memory and is written to disk only when the Draw method is called. It is not possible to write to an intermediate file (to disk) as you create the PDF.
Please take a look at the topic on performance considerations
that provides some guidelines on how to reuse certain resources that may help to some extent. If you are planning to generate very large documents, please make sure that your system has enough memory to handle such large files.
We have this feature (to write the PDF to disk while it is being generated in memory) added to our feature request list for consideration and could potentially be implemented in a future version.
Thanks,
ceTe Software Support Team.