Hello, We are using iText for some pdf manipulation in our application which runs on IBM WebSphere Application server. I am getting java.lang.OutOfMemoryError error while trying to create a PdfReader instance with the following code:
PdfReader pdfReader1 = new PdfReader(thisContent); where thisContent is a Instance of FileInputStream. The FileInputStream was created for a PDF file of 87MB size with 1529 pages. The PDF contains scanned images of different documents. The code is trying to count the number of pages using following command: pageCount = pdfReader1.getNumberOfPages(); Is there any alternate way to get the number of pages? Or is there another way to create PdfReader which is less memory intensive? The JVM setting for WebSphere is configured to have max heap size equal to 1024M. The server has physical memory of 2GB. Can someone please point me to the right direction? I would really appreciate any help. Thanks in advance! Suresh -- View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError-while-creating-PDfReader-tf3215944.html#a8930960 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/