By Date: <-- -->
By Thread: <-- -->

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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions