pdfextract API
    Preparing search index...

    Interface ProgressEvent

    Progress within one extraction stage; totals and counters are not a document-wide percentage.

    interface ProgressEvent {
        completed: number;
        imageId?: string;
        pageNumber?: number;
        stage: "open" | "text" | "images" | "ocr" | "export";
        total?: number;
        unit: "images" | "pages" | "tasks" | "bytes";
    }
    Index
    completed: number

    Completed units in this stage.

    imageId?: string

    Affected document-scoped image identifier, when available.

    pageNumber?: number

    Affected one-based page number, when available.

    stage: "open" | "text" | "images" | "ocr" | "export"

    Current operation phase. images covers the image inventory: getImages reports every requested page (all pages without pages) on every call, and OCR auto every selected page, whether the page is scanned now or already known; other pages are reported only when they are scanned to complete the document's inventory (as extractImage does on first use).

    total?: number

    Total units when known; absent when the amount of work is unknown.

    unit: "images" | "pages" | "tasks" | "bytes"

    Unit of the completed/total counters.