I'm evaluating libraries for the generation of PDF files, and one of my main requirements is to minimize memory usage during generation of potentially very large PDF files. Therefore, I can only consider PDF libraries that allow for some sort of "streamed" mode where the document is written to an output Stream as it is created, rather than the more typical model of holding the entire PDF DOM in memory, and then writing it out to a file or stream when the document is complete.
Does DynamicPDF have this feature? I've downloaded the demo and combed the documentation, and can find no indication that it does.
Memory Usage
Re: Memory Usage
Support · Nov 15, 2005Our product is optimized for performance and does load the portions of the PDF into memory that are used. However, the data from any unmerged portions of the PDFs are not loaded. This means that our product will use more memory than the total used content of all the PDFs you merge. The output is streamed to the output stream as it is written minimizing the amount of memory needed by the output process.
This works very well, even for large documents, but you will run out of memory as the size of your merged data approaches the amount of memory on the system.
We encourage testing this out with the evaluation version. Keep in mind that the evaluation watermark will add overhead, so contact [^a|mailto:support@cete.com|Support^] if you need to have this removed for a testing period.
We have a help topic that discusses some Performance Considerations. Take a look at that as well:
Performance Considerations
Thanks,
ceTe Software Support Team
Re: Memory Usage
Forum member · Nov 15, 2005Thanks, but that's not exactly what I meant. I don't want to merge any pre-existing PDF files. I want to programmatically generate PDF files containing tables that could potentially have several hundred thousand rows of data. At no time do I want an entire Table object containing several hundred thousand rows to be contained in memory, nor do I want a PDF document object containing a table with several hundred thousand rows of data to be resident in memory.
I want to provide an output stream when I start building the PDF document, and I want the content to be written to this stream as I go, so that I can minimize memory usage by not storing the entire DOM in memory at any time.
Re: Memory Usage
Support · Nov 15, 2005OK, I see what you are after now.
The table data will exist in memory until the PDF output is complete. There is no way to have it stream out as you go. The PDF DOM is flushed to the stream as it is created, but the table data itself will exist in memory until the document output is complete.
Thanks,
ceTe Software Support Team