Java project to demonstrate the difference of the behavior of splitting a PDF with pdfbox version 3.0.6 compared to version 3.0.7.
In the resource folder is a single pdf file with lots of pages. We want to split those file into single pages. Therefore
we use the split() Method in the Splitter class of the pdfbox library. When we use the version 3.0.6 of the library,
the output looks good, but when we upgrade to version 3.0.7, some files are not rendered correctly.
For example on page 7 only the background is rendered. Page 2 is only a white page - the images on this page are missing.
In the pom.xml set the version of the pdfbox library to 3.0.6 and run the project. Observe the pdfs in the output
directory (especially page 2 and page 7). Then change the version to 3.0.7 and run the project again. Observe the pdfs
in the output directory again.
NOTE open the pdfs with the acrobat reader - chrome will render some files
- Java 25
- Apache PDFBox
3.0.6/3.0.7