Package com.itextpdf.pdfoptimizer
Class AbstractOptimizationHandler
java.lang.Object
com.itextpdf.pdfoptimizer.AbstractOptimizationHandler
- Direct Known Subclasses:
-
ColorSpaceConverter
,CompressionOptimizer
,FontDuplicationOptimizer
,FontSubsettingOptimizer
,ImageQualityOptimizer
This is the abstract class for optimization handlers which are used to cover a certain optimization of
PdfDocument
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
optimizePdf
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Performs an optimization of the document.
-
Constructor Details
-
AbstractOptimizationHandler
public AbstractOptimizationHandler()
-
-
Method Details
-
optimizePdf
protected abstract void optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Performs an optimization of the document. The method is not designed to be invoked directly. For a correct optimization process use methods ofPdfOptimizer
class.- Parameters:
-
document
- is the PDF document to optimize. Invocation of the method can change the state of the object -
session
- is an auxiliary object used to support share data between stages of optimization process
-