pdftools_sdk.ocr.page_processing_mode

Classes

PageProcessingMode(*values)

The mode for processing pages in OCR

class pdftools_sdk.ocr.page_processing_mode.PageProcessingMode(*values)[source]

Bases: IntEnum

The mode for processing pages in OCR

Variables:
  • 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