Re: [iText-questions] itext outOfMemoryError when attempting to count number of pages in a PDF file

2011-08-01 Thread Robert Ngetich
Hi Kevin, I tried it out. The problem is resolved in the version from HEAD. I also tested using 2 other PDFs that were causing problems with earlier versions of itext, and it processed them successfully as well. I wouldn't want to use a "personal" version of itext (atleast not for very long), so i

[iText-questions] itext outOfMemoryError when attempting to count number of pages in a PDF file

2011-07-28 Thread Robert Ngetich
Hi All, I'm trying to execute the following code: PdfReader reader = new PdfReader("/path/to/file.pdf"); int pages = reader.getNumberOfPages(); It works on most files, but on one particular file, it crashes with error: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.c