Pagespool for MarkItDown
v1.0.3Hosted MarkItDown: convert Word, PowerPoint, Excel, HTML and the text of PDFs to Markdown.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_document Convert a document to Markdown with MarkItDown
Convert a document up to 8 MB to Markdown with MarkItDown and return it. Pass the file as base64 in `content_base64`, or as a download link in `file`, and its name in `filename`. The extension decides the type: .pdf, .docx, .pptx, .xlsx, .html, .htm or .txt. Returns `markdown` and `meta` (`filename`, `length` in characters). PDFs come back as the text of their text layer, without headings and without OCR. Works without an API key at the anonymous rate limit. Credits: 1 per call.
| Parameter | Type | Description |
|---|---|---|
filename * | string | The file name with its extension (.pdf, .docx, .pptx, .xlsx, .html, .htm or .txt). The extension decides how the file is read. |
content_base64 | The file content, base64-encoded. Up to 8 MB before encoding. | |
file | object | The file as a download link, instead of `content_base64`: set `download_url` to a public https URL of the file. |