Skip to main content

Ejemplos

Convert an uploaded file to memory

convertBytes(data, opts) is the variant of convertFile for when the content is already in memory and you don’t want to touch the filesystem.

PDF large with page range

Combine it with pdfIndex to know what range to order without downloading the entire PDF client-side.

BYOS: upload the result directly to your storage

With outputUrl, the API uploads the Markdown directly to your storage and returns a lightweight JSON instead of the full body. See Compression for outputEncoding.

Pipeline RAG with pdfIndex

See PDF Index for AI agents.

Process a ZIP

The file size and quantity limits within ZIP are in Limits. An out-of-range ZIP returns 413, mapped to ErrorKind::PayloadTooLarge.

Convert multiple files in parallel with std::async

markpdf::Client maintains an internal pool of curl easy handle to support concurrent calls from multiple threads without each having to create its own client.