We generate PDF using multiple elements, e.g. Tables, Images, Charts, hyperlinks on each page, latex fragments and latex pdf files merged into main PDF.
As the size of the pdf increases, the application throws outOfMemory exception
After the document is generated, the toc and bookmarks are created in the PDF.
For bookmark creation, I have to navigate the “ChapterNumber” in the document and get its page number and position.
If the documet is too large and we find some text in the file, Page.Accept(textFragment) gives exception of outOfMemory exception.
Because of project data, I cannot share with you the pdf files which gives exception