Skip to main content

Ejemplos

Select and convert a PDF (file_picker)

withData: true is necessary for file_picker to return the bytes in memory — essential in Flutter Web, where there is no filesystem.

Show the converted Markdown on screen

PDF large with page range

Combine it with pdfIndex to know what range to order without downloading the entire PDF to the device.

BYOS: upload the result directly to your storage

Generate the pre-signed URL from your backend and pass it to the client:
ConvertOptions does not expose outputUrl directly because in mobile apps the pre-signed URL is typically generated and consumed in your backend, not on the device. If you need BYOS from the client, consider exposing your own endpoint that receives the PDF, build the pre-signed URL from your storage, and call the API with Node.js or Python.

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 casts PayloadTooLargeException.