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.

    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.