pdfOptimizer 4.1.2 API
iText.Pdfoptimizer.Handlers.CompressionOptimizer Class Reference

Performs maximal compression of every iText.Kernel.Pdf.PdfStream and full compression of the iText.Kernel.Pdf.PdfDocument. More...

Inheritance diagram for iText.Pdfoptimizer.Handlers.CompressionOptimizer:
iText.Pdfoptimizer.AbstractOptimizationHandler

Package Functions

override void  OptimizePdf (PdfDocument document, OptimizationSession session)
  Performs an optimization of the document. More...
 

Detailed Description

Performs maximal compression of every iText.Kernel.Pdf.PdfStream and full compression of the iText.Kernel.Pdf.PdfDocument.

Member Function Documentation

◆ OptimizePdf()

override void iText.Pdfoptimizer.Handlers.CompressionOptimizer.OptimizePdf ( PdfDocument  document,
OptimizationSession  session 
)
inlinepackagevirtual

Performs an optimization of the document.

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.

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

Implements iText.Pdfoptimizer.AbstractOptimizationHandler.