Enum Class CompressionCode

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

public enum CompressionCode extends Enum<CompressionCode>
Compression values for generating graphics files from PDF pages. A compression value must be provided for JPG or GIF images.
  • Enum Constant Details

    • DEFAULT

      public static final CompressionCode DEFAULT
      Use the default for the output image type.
    • NONE

      public static final CompressionCode NONE
      Use no image compression. Valid for BMP, PNG and TIFF outputs only.
    • FLATE

      public static final CompressionCode FLATE
      Deflate algorithm (PNG only). An open source standard widely used for creating zip files and with PDF.
    • LZW

      public static final CompressionCode LZW
      Lempel-Ziv-Welch, valid for TIFF output. Valid for GIF and TIFF. A lossless algorithm, resulting files are larger but retain original quality.
    • G3

      public static final CompressionCode G3
      CCITT Group3 compression. Valid for TIFF, requires colorModel gray. A lossless algorithm for black and white images that efficiently compresses whitespace.
    • G4

      public static final CompressionCode G4
      CCITT Group4 compression. Valid for TIFF, requires colorModel gray. A lossless algorithm for black and white images based on G3.
    • DCT

      public static final CompressionCode DCT
      Discrete Cosine Transform. Lossy algorithm, valid for JPEG. Best when used with continuous tone (such as photographs).
  • Method Details

    • values

      public static CompressionCode[] 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 CompressionCode 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