Enum Class CompressQuality

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

public enum CompressQuality extends Enum<CompressQuality>
Establish the compression quality to be used in compression schemas that allow variable quality. (JPEG, JPEG2000, JBIG2). Unset should be selected for compression schemes that are inherently lossless (Flate, CCITTG3, or CCITTG4). JBIG2 may select any value. JPEG and JPEG2000 can select any value between Minimum and Maximum, but should not select Unset or Lossless.
  • Enum Constant Details

    • UNSET

      public static final CompressQuality UNSET
      No Quality is selected. This is appropriate for Flate, JBIG2, CCITTG3, or CCITTG4 compression.
    • MINIMUM

      public static final CompressQuality MINIMUM
      For JPEG, this will equate to a QFactor of 1.3. For JPEG2000, this will equate to Quality of 0. For JBIG2, this will equate to a JB2Quality of 4.
    • LOW

      public static final CompressQuality LOW
      For JPEG, this will equate to a QFactor of 0.75. For JPEG2000, this will equate to Quality of 25. For JBIG2, this will equate to a JB2Quality of 5.
    • MEDIUM

      public static final CompressQuality MEDIUM
      For JPEG, this will equate to a QFactor of 0.5. For JPEG2000, this will equate to Quality of 50. For JBIG2, this will equate to a JB2Quality of 7.
    • HIGH

      public static final CompressQuality HIGH
      For JPEG, this will equate to a QFactor of 0.25. For JPEG2000, this will equate to Quality of 75. For JBIG2, this will equate to a JB2Quality of 9.
    • MAXIMUM

      public static final CompressQuality MAXIMUM
      For JPEG, this will equate to a QFactor of 0.15. For JPEG2000, this will equate to Quality of 100. For JBIG2, this will equate to a JB2Quality of 10.
    • LOSSLESS

      public static final CompressQuality LOSSLESS
      This may ONLY be selected for Flate, CCITTG3, CCITTG4, and JBIG2
  • Method Details

    • values

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