Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.31, 3.0.2 PDFBox
-
None
Description
The attached pdf used to work with Splitter in release 3.0.0, 3.01 however breaks in 3.0.2.
Cannot invoke "org.apache.pdfbox.pdmodel.PDPage.getCOSObject()" because the return value of "org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination.getPage()" is null
java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.pdmodel.PDPage.getCOSObject()" because the return value of "org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination.getPage()" is null
at org.apache.pdfbox.multipdf.Splitter.fixDestinations(Splitter.java:153)
at org.apache.pdfbox.multipdf.Splitter.split(Splitter.java:136)
Have attached the pdf and a test class.
It fails if we split on page count =1 or count = 10.
Attachments
Attachments
Issue Links
- is duplicated by
-
PDFBOX-5803 Splitter throws NullPointerException when splitting certain PDFs
- Closed
-
PDFBOX-5815 Can't split the document into individual pages
- Closed
- relates to
-
PDFBOX-5762 When splitting, keep page destinations that are part of target document(s)
- Closed