Enum OcrMode

  • All Implemented Interfaces:
    Serializable, Comparable<OcrMode>

    public enum OcrMode
    extends Enum<OcrMode>
    OCR (Optical Character Recognition) mode for PDF conversion: * `AUTO` - Automatically detect if OCR is needed by analyzing the PDF content. If the PDF contains less than 10 visible characters in the first 5 pages, OCR will be enabled. This is the default mode. * `ENABLED` - Always perform OCR regardless of PDF content. Use this for scanned documents or image-based PDFs. * `DISABLED` - Never perform OCR. Use this for PDFs with selectable text to speed up conversion.
    • Enum Constant Detail

      • AUTO

        public static final OcrMode AUTO
      • ENABLED

        public static final OcrMode ENABLED
      • DISABLED

        public static final OcrMode DISABLED
    • Method Detail

      • values

        public static OcrMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OcrMode c : OcrMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OcrMode 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