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

    Function analyze

    • Analyze a PDF (or replay an already-recognized OCR word dump) into Analysis: plain, JSON-serializable per-page words/blocks plus the same QA report the other entry points return. Render with toMarkdown()/toText(), or hand-edit/splice it (no merge API — see toMarkdown's doc comment).

      Parameters

      • input: string | { words: PageWord[] }

        a bare pdf path, or { words } to replay a dump (always analyzed as OCR) — unlike extractOcr, never { pdfPath }

      • opts: AnalyzeOptions = {}

        see AnalyzeOptions; for a PDF path, path explicitly selects text (default) or OCR. Automatic per-page routing belongs to pdfToMarkdown and the CLI output formats.

      Returns Promise<Analysis>