Parsing Large PDF :Out of Memory Exception
This is related to pdf parsing in java using Itext.
I have a requirment that says : Given a pdf path and a bookmark(text), my application should open up the pdf document and the chosen bookmark should be opened in the document.
My approach :
I am parsing the pdf file using Itext for getting mapping between bookmark page number . I would then open the pdf with its 'page' parameter. Everything works fine until the size of the document increases.
Itext does not load/parse/handle pdf with huge data. My pdf file runs into 100 of mbs and java throws out a memory exception when loading the file.
I ve tried increasing my heap size in java etc, but still the OutOfMemory Exception persists.
Could anyone please tell me how do i change my approach in solving the problem ?
Any help in this matter would be useful.
Thanks in advance for help.