Package com.itextpdf.pdfoptimizer
Enum PdfOptimizerProfile
- All Implemented Interfaces:
-
Serializable
,Comparable<PdfOptimizerProfile>
,java.lang.constant.Constable
Enum is used to list available PdfOptimizer profiles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMarker for a custom profile which is empty by default.High-level compression profile.Lossless compression profile.Low-level compression profile.Mid-level compression profile. -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfOptimizerProfile
Returns the enum constant of this type with the specified name.static PdfOptimizerProfile[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOSSLESS_COMPRESSION
Lossless compression profile. Includes:- stream compression optimization (done by
CompressionOptimizer
); - font duplication optimization (done by
FontDuplicationOptimizer
); - font subsetting optimization (done by
FontSubsettingOptimizer
).
- stream compression optimization (done by
-
LOW_COMPRESSION
Low-level compression profile. Includes:- stream compression optimization (done by
CompressionOptimizer
); - font duplication optimization (done by
FontDuplicationOptimizer
); - font subsetting optimization (done by
FontSubsettingOptimizer
); - image quality optimization (done by
ImageQualityOptimizer
): bitmap images are scaled with coefficient 0.8; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.8.
- stream compression optimization (done by
-
MID_COMPRESSION
Mid-level compression profile. Includes:- stream compression optimization (done by
CompressionOptimizer
); - font duplication optimization (done by
FontDuplicationOptimizer
); - font subsetting optimization (done by
FontSubsettingOptimizer
); - image quality optimization (done by
ImageQualityOptimizer
): bitmap images are scaled with coefficient 0.5; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.5.
- stream compression optimization (done by
-
HIGH_COMPRESSION
High-level compression profile. Includes:- stream compression optimization (done by
CompressionOptimizer
); - font duplication optimization (done by
FontDuplicationOptimizer
); - font subsetting optimization (done by
FontSubsettingOptimizer
); - image quality optimization (done by
ImageQualityOptimizer
): bitmap images are scaled with coefficient 0.15; scaled bitmap images in CMYK color space are converted into images in RGB color space; images in RGB and Grey color space, both scaled bitmaps and originally jpeg images, are compressed by JPEG compression with coefficient 0.15.
- stream compression optimization (done by
-
CUSTOM
Marker for a custom profile which is empty by default.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name -
NullPointerException
- if the argument is null
-