On 08 Jun 2011, at 21:14, Andreas L. Delmelle wrote:
> <snip /> >> <snip /> >> My current questions are: >> >> -Why are the page objects flushed straight away? (Memory constraints?) > > Very likely to save memory indeed. More with the intention of just flushing > "as soon as possible", to support full streaming processing if the document > structure allows it. Theoretically, in a document consisting of single-page > fo:page-sequences, without any cross-references, you should see relatively > low memory usage even if the document is 10000+ pages, precisely because the > pages are all written to the output immediately, long before the root page > tree, which only retains their object references. ^^^^^^^^^^^^^^^^^ Just felt this needed clarification: *PDF* object references (which, in Java are merely Strings, not references to the PDFPage objects).