Class FontSubsettingOptimizer
java.lang.Object
com.itextpdf.pdfoptimizer.AbstractOptimizationHandler
com.itextpdf.pdfoptimizer.handlers.FontSubsettingOptimizer
Makes a subset of the font glyphs used in document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidoptimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Performs an optimization of the 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 ofPdfOptimizerclass.- Specified by:
-
optimizePdfin classAbstractOptimizationHandler - 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
-