As noted during the license review (
PDFBOX-366), we can't have the Java Advanced Imaging (JAI) libraries included in Apache PDFBox.
One alternative would be to require downstream users to explicitly download the required JAI libraries from Sun and place them in the lib directory before building PDFBox. That's quite cumbersome, so I looked at how tightly integrated PDFBox is with the JAI libraries.
It turns out that only two classes in PDFBox (PDPage and PDCcitt) have direct dependencies to the JAI libraries. The PDPage dependency is used for rotating the page image, and the PDCcitt dependency for parsing a tiff image.
I believe both of these dependencies can be replaced with functionality or interfaces available in standard JDK 1.4. See the attached patch for the proposed changes.