pdfextract API
    Preparing search index...

    Function createTesseractOcr

    • Create a reusable OCR provider without initializing its workers.

      Parameters

      • options: TesseractOcrOptions

        Languages, bounded concurrency and explicitly hosted models/runtime assets.

      Returns OcrProvider

      A caller-owned provider; await close after all borrowing documents finish.

      Word boxes refer to the supplied tightly packed RGBA8 raster. Automatic rotation is disabled. Works in windows and Web Workers; Node resolves the package's node export condition instead.

      Invalid configuration fails immediately; missing assets fail on recognition with OCR_ASSET_UNAVAILABLE.