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

public enum ColorConversionMode extends Enum<ColorConversionMode>
Enum is used to list available color conversion modes.
  • Enum Constant Details

    • IGNORE_PDF_A_CONFORMANCE

      public static final ColorConversionMode 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

      public static final ColorConversionMode 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 (see CsConverterProperties.setOutputIntent(PdfOutputIntent) method). If PDF/A conformance cannot be maintained during conversion, an exception PdfOptimizerException will be thrown.
  • Method Details

    • values

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

      public static ColorConversionMode valueOf (String name)
      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