Enum ColorConversionMode
java.lang.Object
java.lang.Enum<ColorConversionMode>
com.itextpdf.pdfoptimizer.handlers.converters.ColorConversionMode
- All Implemented Interfaces:
-
Serializable
,Comparable<ColorConversionMode>
,java.lang.constant.Constable
Enum is used to list available color conversion modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIgnore PDF\A conformance mode.Normal mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorConversionMode
Returns the enum constant of this type with the specified name.static ColorConversionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IGNORE_PDF_A_CONFORMANCE
Ignore PDF\A conformance mode. In this mode color space will be converted in all supported cases. If passed document to conversion is PDF/A document, PDF/A id schemas will be removed from PDF XMP metadata, so PDF document will no longer be considered as PDF/A. Compatibility checks for PDF/A conformance will be skipped. -
NORMAL
Normal mode. In this mode color space will be converted in all supported cases. If passed document to conversion is PDF/A document, output intent is required (seeCsConverterProperties.setOutputIntent(PdfOutputIntent)
method). If PDF/A conformance cannot be maintained during conversion, an exceptionPdfOptimizerException
will be thrown.
-
-
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
-