Source code for pdftools_sdk.ocr.page_processing_mode

from ctypes import *
from enum import IntEnum

[docs] class PageProcessingMode(IntEnum): """ The mode for processing pages in OCR Attributes: NONE (int): Do not process pages. ALL (int): Process all pages that are not empty. IF_NO_TEXT (int): Process all pages that contain content but no text. ADD_RESULTS (int): Do not trigger OCR processing of pages. But if pages are OCR processed due to another OCR mode, add results as OCR text to pages. """ NONE = 0 ALL = 1 IF_NO_TEXT = 2 ADD_RESULTS = 3