Class FontSubsettingOptimizer

java.lang.Object
com.itextpdf.pdfoptimizer.AbstractOptimizationHandler
com.itextpdf.pdfoptimizer.handlers.FontSubsettingOptimizer

public class FontSubsettingOptimizer extends AbstractOptimizationHandler
Makes a subset of the font glyphs used in document.
  • Constructor Details

    • FontSubsettingOptimizer

      public FontSubsettingOptimizer()
  • Method Details

    • optimizePdf

      protected 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.
      Specified by:
      optimizePdf in class AbstractOptimizationHandler
      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