public class FontDuplicationOptimizer extends AbstractOptimizationHandler
| Constructor and Description |
|---|
FontDuplicationOptimizer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
The method searches for font dictionaries in PdfDocuments and compare them.
|
protected void optimizePdf(com.itextpdf.kernel.pdf.PdfDocument document,
OptimizationSession session)
PdfDocument.isFlushUnusedObjects() returns false then they will be ignored during flushing.
optimizePdf in class AbstractOptimizationHandler
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
Copyright © 1998–2020 iText Group NV. All rights reserved.