Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.20
Description
Exception in thread "main" java.lang.IllegalStateException: Expected 'Page' but found COSName{Annot} at org.apache.pdfbox.pdmodel.PDPageTree.sanitizeType(PDPageTree.java:250) at org.apache.pdfbox.pdmodel.PDPageTree.access$300(PDPageTree.java:41) at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.next(PDPageTree.java:210) at org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.next(PDPageTree.java:170) at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:320) at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:272) at org.apache.pdfbox.tools.ExtractText.extractPages(ExtractText.java:377) at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:274) at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:97) at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:60)
File works in 2.0.20 and in the trunk