Hi Matthew,
you could comment out line 131 of Pagetreenode.java like this:

PdfArray dict = (PdfArray) PdfReader.getPdfObject(page.get(PdfName.ANNOTS));
    if (dict != null) {
this.add(new SimpletextTreeNode(PdfName.ANNOTS + " " + dict.length())); SimpletextTreeNode sttn = new SimpletextTreeNode(PdfName.ANNOTS + " " +
         dict.type());
     this.add(sttn);
//     pageanalyzer.iterateObjects(dict, pdfreader, sttn); <--- here

    }

But then you loose the annotation tree. There is a lot of room for improvements.
Best regards,
Carsten


Matthew L Daniel schrieb:
Based on the f1040.pdf available from
http://www.irs.gov/pub/irs-pdf/f1040.pdf

=== Pdf Analysis OPENED ===
Exception in thread "Thread-4" java.lang.StackOverflowError
    at java.util.Vector.insertElementAt(Unknown Source)
    at javax.swing.tree.DefaultMutableTreeNode.insert(Unknown Source)
    at javax.swing.tree.DefaultMutableTreeNode.add(Unknown Source)
    at com.lowagie.tools.plugins.treeview.AnalyzePDF.iterateObjects(Unknown 
Source)
    at com.lowagie.tools.plugins.treeview.AnalyzePDF.iterateObjects(Unknown 
Source)
   (repeats forever)


Interestingly enough, the InspectPDF opens it fine.

  Just FYI,
  -- /v\atthew



-------------------------------------------------------
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



-------------------------------------------------------
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

Reply via email to