public enum ImageCompressionEnum extends Enum<ImageCompressionEnum>
Specifies the type of compression applied to images in the PDF file.
Enum Constant and Description |
---|
Auto
Automatically selects the most appropriate compression for each image.
|
Ccitt3
/CCITTFaxDecode/DecodeParms/K 0/Columns 173
Does not support transparency.
|
Ccitt4
/CCITTFaxDecode/DecodeParms/K -1/Columns 173
Does not support transparency.
|
Flate
Flate compression.
|
Jpeg
Jpeg compression.
|
LzwBaselinePredictor
Predictor selection is restricted to PNG Paeth predictor to speed-up the process.
|
LzwOptimizedPredictor
Predictor selection is more complicated and should result in smaller image sizes but
taking more time.
|
None
Saves raw image bytes resulting in bigger pdf file sizes.
|
Rle
Run Length compression.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the value that represents the type of the enum.
|
static ImageCompressionEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageCompressionEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageCompressionEnum Auto
Automatically selects the most appropriate compression for each image.
public static final ImageCompressionEnum None
Saves raw image bytes resulting in bigger pdf file sizes.
public static final ImageCompressionEnum Rle
Run Length compression.
public static final ImageCompressionEnum Flate
Flate compression.
public static final ImageCompressionEnum LzwBaselinePredictor
Predictor selection is restricted to PNG Paeth predictor to speed-up the process. In practice
performs surprisingly good. Better than LzwOptimizedPredictor
.
public static final ImageCompressionEnum LzwOptimizedPredictor
Predictor selection is more complicated and should result in smaller image sizes but
taking more time. RFC 2083 says it is the best way to go. But on the test data baseline predictor
LzwBaselinePredictor
kicks ass leaving optimized predictor behing
by 25-40% compression rate gains.
public static final ImageCompressionEnum Jpeg
Jpeg compression. Does not support transparency.
public static final ImageCompressionEnum Ccitt3
/CCITTFaxDecode/DecodeParms/K 0/Columns 173 Does not support transparency.
public static final ImageCompressionEnum Ccitt4
/CCITTFaxDecode/DecodeParms/K -1/Columns 173 Does not support transparency.
public static ImageCompressionEnum[] values()
for (ImageCompressionEnum c : ImageCompressionEnum.values()) System.out.println(c);
public static ImageCompressionEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getType()