Class AbstractOptimizationHandler

Direct Known Subclasses:
ColorSpaceConverter, CompressionOptimizer, FontDuplicationOptimizer, FontSubsettingOptimizer, ImageQualityOptimizer

public abstract class AbstractOptimizationHandler extends Object
This is the abstract class for optimization handlers which are used to cover a certain optimization of PdfDocument.
  • 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 of PdfOptimizer class.
      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