Package com.datalogics.PDFL
Enum Class CompressionCode
- All Implemented Interfaces:
Serializable,Comparable<CompressionCode>,Constable
Compression values for generating graphics files from PDF pages. A compression value must be provided for JPG or GIF images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionCodeReturns the enum constant of this class with the specified name.static CompressionCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DEFAULT
Use the default for the output image type. -
NONE
Use no image compression. Valid for BMP, PNG and TIFF outputs only. -
FLATE
Deflate algorithm (PNG only). An open source standard widely used for creating zip files and with PDF. -
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
CCITT Group3 compression. Valid for TIFF, requires colorModel gray. A lossless algorithm for black and white images that efficiently compresses whitespace. -
G4
CCITT Group4 compression. Valid for TIFF, requires colorModel gray. A lossless algorithm for black and white images based on G3. -
DCT
Discrete Cosine Transform. Lossy algorithm, valid for JPEG. Best when used with continuous tone (such as photographs).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-