Enum Class CompressionType

java.lang.Object
java.lang.Enum<CompressionType>
com.datalogics.PDFL.CompressionType
All Implemented Interfaces:
Serializable, Comparable<CompressionType>, Constable

public enum CompressionType extends Enum<CompressionType>
Enumerator used to select type of compression used when images are recompressed.

For color or grayscale images: Flate, JPEG or JPEG2000 may be selected. For black and white images: Flate, JBIG2, CCITTG3, or CCITTG4 may be selected.

  • Enum Constant Details

    • NO_COMPRESSION

      public static final CompressionType NO_COMPRESSION
      Do not replace compression type.
    • SAME_COMPRESSION

      public static final CompressionType SAME_COMPRESSION
      Recompress with the same compression.
    • FLATE_COMPRESSION

      public static final CompressionType FLATE_COMPRESSION
      Recompress with Flate compression.
    • JPEGCOMPRESSION

      public static final CompressionType JPEGCOMPRESSION
      Recompress with JPEG. JPEG quality is set with compression quality.
    • JPEG_2000_COMPRESSION

      public static final CompressionType JPEG_2000_COMPRESSION
      Recompress using JPEG2000. JPEG2000 Quality is set with compression quality.
    • JBIG_2COMPRESSION

      public static final CompressionType JBIG_2COMPRESSION
      Recompress with JBIG2. JBIG2 Quality is set with compression quality.
    • CCITTG_4COMPRESSION

      public static final CompressionType CCITTG_4COMPRESSION
      Recompress with CCITTG4.
    • CCITTG_3COMPRESSION

      public static final CompressionType CCITTG_3COMPRESSION
      Recompress with CCITTG3.
    • FLATE_JPEG_COMPRESSION

      public static final CompressionType FLATE_JPEG_COMPRESSION
      Recompress with FlateJpeg.
  • Method Details

    • values

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

      public static CompressionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null