pdfOptimizer 2.0.0 API
iText.Pdfoptimizer Namespace Reference

Classes

class   AbstractOptimizationHandler
  This is the abstract class for optimization handlers which are used to cover a certain optimization of iText.Kernel.Pdf.PdfDocument. More...
 
class   OptimizationSession
  Class is used to handle auxiliary activities during the optimization processing (i. e. generating optimization report). More...
 
class   PdfOptimizer
  Entry point for Pdf Optimization process. More...
 
class   PdfOptimizerFactory
  Class is responsible for creating new instances of PdfOptimizer in accordance with predefined PdfOptimizerProfile. More...
 

Enumerations

enum   PdfOptimizerProfile {
  PdfOptimizerProfile.LOSSLESS_COMPRESSION, PdfOptimizerProfile.LOW_COMPRESSION, PdfOptimizerProfile.MID_COMPRESSION, PdfOptimizerProfile.HIGH_COMPRESSION,
  PdfOptimizerProfile.CUSTOM
}
  Enum is used to list available PdfOptimizer profiles. More...
 

Enumeration Type Documentation

◆ PdfOptimizerProfile

Enum is used to list available PdfOptimizer profiles.

Enumerator
LOSSLESS_COMPRESSION 

Lossless compression profile.

Lossless compression profile. Includes:

  • stream compression optimization (done by CompressionOptimizer );
  • font duplication optimization (done by FontDuplicationOptimizer );
  • font subsetting optimization (done by FontSubsettingOptimizer ).
LOW_COMPRESSION 

Low-level compression profile.

Low-level compression profile. Includes:

  • stream compression optimization (done by CompressionOptimizer );
  • font duplication optimization (done by FontDuplicationOptimizer );
  • font subsetting optimization (done by FontSubsettingOptimizer );
  • image quality optimization (done by ImageQualityOptimizer ): bitmap images are scaled with coefficient 0.8; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.8.
MID_COMPRESSION 

Mid-level compression profile.

Mid-level compression profile. Includes:

  • stream compression optimization (done by CompressionOptimizer );
  • font duplication optimization (done by FontDuplicationOptimizer );
  • font subsetting optimization (done by FontSubsettingOptimizer );
  • image quality optimization (done by ImageQualityOptimizer ): bitmap images are scaled with coefficient 0.5; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.5.
HIGH_COMPRESSION 

High-level compression profile.

High-level compression profile. Includes:

  • stream compression optimization (done by CompressionOptimizer );
  • font duplication optimization (done by FontDuplicationOptimizer );
  • font subsetting optimization (done by FontSubsettingOptimizer );
  • image quality optimization (done by ImageQualityOptimizer ): bitmap images are scaled with coefficient 0.15; scaled bitmap images in CMYK color space are converted into images in RGB color space; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.15.
CUSTOM 

Marker for a custom profile which is empty by default.