Skip to content

Function: toMarkdown() ​

ts
function toMarkdown(buf, opts?): Promise<string>;

Defined in: src/index.ts:31

Open a PDF from bytes and convert to markdown.

Parameters ​

buf ​

ArrayBuffer | Uint8Array<ArrayBufferLike>

opts? ​

MarkdownOptions = {}

Returns ​

Promise<string>

AGPL-3.0-or-later — inherited from PyMuPDF and pymupdf4llm.