I tried to merge two pdf documents using itext api. it's working fine for small size of documents. i tried to merge a 40MB document with 30KB document, it shows the out of memory exception. i increased the heap size of java also.. still i am getting the same error.
1. What is the limitation of file size while merging using itext api. i want to confirm is there any limitiations in itext api
2. Please provide me the sample source or guide me how to merge the 40MB document with 30Kb document.