Hi list.
I have a PDF (v 1.4) created by "wPDF3 by WPCubed GmbH"
(http://www.wptools.de) that when traversed with PDFBox 2.0.3 I get the
following exception:
java.lang.IllegalStateException: Expected 'Page' but found COSName{Group}
at
org.apache.pdfbox.pdmodel.PDPageTree.sanitizeType(PDPageTree.java:227)
at org.apache.pdfbox.pdmodel.PDPageTree.access$300(PDPageTree.java:38)
at
org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.next(PDPageTree.java:189)
at
org.apache.pdfbox.pdmodel.PDPageTree$PageIterator.next(PDPageTree.java:153)
I don't know much about the internals of PDF, but the file opens without
any issues in Foxit Reader and some online validator claims it is ok.
How can I determine if the document is in error or if PDFBox has a problem?
Unfortunately I cannot share the document.
--
</Mattias>