@effortlessmotion/pdf-to-md
    Preparing search index...

    Interface PdfToMarkdownOptions

    Options for pdfToMarkdown.

    interface PdfToMarkdownOptions {
        dpi?: number;
        noOcr?: boolean;
        ocr?: boolean;
        onProgress?: (e: OcrProgressEvent) => void;
        onWarning?: (message: string) => void;
        onWords?: (words: PageWord[]) => void;
        pageMarkers?: boolean;
        pages?: PageSelection;
        tuning?: Partial<Tuning>;
    }

    Hierarchy (View Summary)

    Index
    dpi?: number

    page-render resolution for engine recognition (default 288, measured;

    ~400 measured WORSE on ordinary pages — not a "bigger is safer" knob)

    noOcr?: boolean

    never fall back to OCR, even for image-only pages

    ocr?: boolean

    force the OCR path even when a text layer exists

    onProgress?: (e: OcrProgressEvent) => void

    one event per page as recognition finishes (timing/count only — engine chatter and the sparse-retry notice arrive via onWarning instead)

    onWarning?: (message: string) => void

    delivered as each warning happens (also returned, in full, as warnings on the resolved result)

    onWords?: (words: PageWord[]) => void

    every recognized word entering the geometry, delivered once after recognition — the severity-1 audit instrument (--debug-words)

    pageMarkers?: boolean

    emit a ### pN marker before each page's content (output formatting only — report.pageStats is always populated regardless)

    convert only this page range (1-based, inclusive); defaults to the whole document

    tuning?: Partial<Tuning>

    override any subset of the OCR-path geometry defaults — see DEFAULT_TUNING (src/geometry.ts) for each knob's measured default