Enum PdfOptimizerProfile

java.lang.Object
java.lang.Enum<PdfOptimizerProfile>
com.itextpdf.pdfoptimizer.PdfOptimizerProfile
All Implemented Interfaces:
Serializable, Comparable<PdfOptimizerProfile>, java.lang.constant.Constable

public enum PdfOptimizerProfile extends Enum<PdfOptimizerProfile>
Enum is used to list available PdfOptimizer profiles.
  • Enum Constant Details

    • LOSSLESS_COMPRESSION

      public static final PdfOptimizerProfile LOSSLESS_COMPRESSION
      Lossless compression profile. Includes:
    • LOW_COMPRESSION

      public static final PdfOptimizerProfile LOW_COMPRESSION
      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

      public static final PdfOptimizerProfile MID_COMPRESSION
      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

      public static final PdfOptimizerProfile HIGH_COMPRESSION
      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

      public static final PdfOptimizerProfile CUSTOM
      Marker for a custom profile which is empty by default.
  • Method Details

    • values

      public static PdfOptimizerProfile[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PdfOptimizerProfile valueOf (String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null