Package com.pd4ml.pdf.optimizer
-
Class Summary Class Description PdfOptimizer Cleans a PDF down to exactly what's actually reachable, and collapses its cross-reference/trailer history into one fresh table -- built entirely on the pd4mlcom.pd4ml.pdf.cosobject model/parser (no PDFBox, no other PDF library), the same foundationcom.pd4ml.pdf.signandcom.pd4ml.pdf.mergeare built on.PdfOptimizer.Options PdfOptimizeResult Outcome of aPdfOptimizer.optimize(byte[])call: the rewritten PDF bytes plus before/after size and object-count stats, so a caller can tell how much (if anything) was actually cleaned up without re-parsing either file. -
Exception Summary Exception Description PdfOptimizeException Checked exception wrapping any failure that occurs while loading, garbage collecting, or rewriting a PDF viaPdfOptimizer.