The headline API: extract a PDF to markdown, text layer first, falling back to OCR when the text layer is empty enough the pages are certainly images of text (< AUTO_OCR_CHARS_PER_PAGE chars/page) — the same decision the CLI makes.
AUTO_OCR_CHARS_PER_PAGE
path to the PDF file
see PdfToMarkdownOptions
The headline API: extract a PDF to markdown, text layer first, falling back to OCR when the text layer is empty enough the pages are certainly images of text (<
AUTO_OCR_CHARS_PER_PAGEchars/page) — the same decision the CLI makes.