convert
Transform documents from URLs or paths into Markdown, docling JSON, HTML, LaTeX, RAG chunks, or WebVTT with OCR, page range, and password options.
Instructions
Convert a document (URI or path, as convert_to_markdown) to Markdown, docling JSON, HTML, plain text, LaTeX, RAG chunks, WebVTT or Pandoc JSON, with docling.rs's conversion options (page ranges, OCR language and mode, text-layer-only PDFs, passwords, picture OCR, …).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Output format: md (default), json (docling's DoclingDocument), html, text, latex, chunks (RAG chunk records as JSON), vtt, pandoc (Pandoc's JSON AST). | |
| uri | Yes | The document: an http: or https: URL, a file: URI, a data: URI, or a path (relative paths resolve against the server's root). | |
| images | No | Pictures in md/html/pandoc output: placeholder (default) or embedded (data: URIs). | |
| options | No | Conversion options, docling.rs's shared set (docs/OPTIONS.md), e.g. {"pages": "1-5"}, {"text_layer_only": true} (digital PDFs, fastest), {"ocr_lang": "ch"}, {"force_full_page_ocr": true}, {"do_picture_ocr": true} (OCR pictures inside Office files), {"password": "…"}, {"compact_tables": false}. A value may also be given as text ("true", "1.5"), as a form sends it. |