Class ScannedDocumentError

Thrown for a PDF asked for while OCR is off, and for a scan whose pages gave no text. For the second, cause is the first failure officeparser reported for a picture OCR could not read, when it reported one.

Hierarchy

  • Error
    • ScannedDocumentError

Constructors

Properties

Constructors

Properties

code: "SCANNED_DOCUMENT" = 'SCANNED_DOCUMENT'

A stable code for callers that branch on the kind of failure.