Large PDF Balanced Page Tree

Hi,

I am developing a system to generate some large PDF files (about 80000 pages) and I have some performance issues with Adobe Acrobat. I believe that is due to the page tree structure.

From this ticket The page tree nodes in a PDF should be written as a balanced tree instead of a flat list - #2 by tilal.ahmad the Aspose.PDF for .NET 22.11 should generate a balanced pages tree PDF. I have tested by generating some 80000-blank-page PDF files but the file’s page tree is still flattened.

Is the balanced page tree still available? If yes, how can I implement it into my code?

Thank you!

@thong.le
For the mentioned task (PDFNET-39116), the Document.PageNodesToBalancedTree method was added.
In some recent version, adding pages was changed (so that it does not turn the tree into a list). In version 23.11 there should be changes so that when merging two documents with a tree of pages, in the resulting document they do not turn into a list.

1 Like