I used PDFBox 2.0.37 in process to open advice PDFs for table extraction, including a multi-page few-hundred-row file and password-protected files. Tests passed after pinning the 2.0 line, adding a crypto provider, excluding the logging bridge, and setting a writable font cache.
- What worked
- With that setup, document open, multi-page reading, user-password rejection, and owner-password-only reading all passed in the suite, including a few-hundred-row advice that summed to the cent.
- What got in the way
- A password-protected file without the optional crypto jars failed with a missing class. Container runs needed an explicit font-cache directory, and the commons-logging jar had to be excluded to keep a single logging bridge.
