It may be a memory problem although is generally gives an out memory exception first. Are you using the latest iText relase?
Paulo ----- Original Message ----- From: "Andrea Vacondio" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, June 28, 2006 11:27 AM Subject: [iText-questions] PdfReader Stavkoverflow > Hi, > i'm having a problem reading big pdf files with PdfReader. When i open an > ebook (about 1000 pages) it happens i get java.lang.StackOverflowError. > Sometime i can read it and some other i get this error and it doesnt > depend > on the pdf file, it happens with different files. Here is the code > snippet: > > try{ > PdfReader pdf_reader = new > PdfReader(file_to_add.getAbsolutePath()); > encrypt = pdf_reader.isEncrypted(); > num_pages = Integer.toString > (pdf_reader.getNumberOfPages()); > } > catch (Exception ex){ > num_pages = ex.getMessage(); > } > > The line where i create the PdfReader object is the one that gives > StackOverflow. I'd like at least to catch it to tell the user there was a > problem. > Any suggestion? thank you. > Andrea 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 [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
