additional to what Andreas mentioned... however all this will just make
your life more complicated. Good PDFs are already "optimized". You can
try to load and save a PDF with PDFBox to see if we're better.
1. Does PDFBox support standard PDF compression methods, and if so,
what constitutes "normal compression" in this context?
I guess FLATE might count as "normal". We use "-1" (default) for
Deflater(). You can set another by setting the property
"org.apache.pdfbox.filter.deflatelevel" to a value between 0 and 9.
However ZOPFLI isn't supported, and I doubt it would be useful for most PDFs
https://en.wikipedia.org/wiki/Zopfli
2. Is it possible to specify a compression range or level, such as
setting compression at 80% or 90%?
For FLATE (see above) and for JPEG images, see
PDImageXObject.createFromImage().
3. Are all compression-related functionalities available in the
open-source version of PDFBox?
All except JPX and JBIG2, there we have only decompression. JBIG2 is a
troublesome format (which may have been responsible for a conspiracy
theory around Barack Obama), and JPX never really took off.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org