pdfextract API
    Preparing search index...

    Interface OcrProvider

    Engine-neutral, caller-owned OCR service that may be shared across PDF handles.

    interface OcrProvider {
        close(): Promise<void>;
        recognize(
            raster: OcrRaster,
            options?: OperationOptions,
        ): Promise<OcrResult>;
    }
    Index
    • Idempotently release provider-owned workers/resources. The application calls this after all borrowing PDFs finish.

      Returns Promise<void>