Convert a document between Markdown, DOCX, HTML, PDF, RST, LaTeX, EPUB, and more.
by Faro
Converts a document between Markdown, GFM, HTML, DOCX, RST, LaTeX, EPUB, plain text, and PDF in a single call. Returns the converted file ready for download.
Format conversion is a long tail of edge cases (table handling, footnotes, code blocks, embedded images), and a single endpoint that normalizes across nine common formats saves agents from hosting their own Pandoc or Word automation stack. Output stays structurally faithful so headings, lists, and tables survive the round trip.
Input and output formats are both selectable, so the same tool handles Markdown to PDF, HTML to DOCX, LaTeX to EPUB, and other combinations symmetrically.
Pre-signed GET URL of the file to convert. Obtain via POST /uploads/presign on faro-api.
Seconds the download URL stays valid (default 1h, max 24h).
Pandoc input format. `auto` infers from filename/extension in input_url.
Pandoc output format. PDF is rendered via weasyprint (no LaTeX); math/bibliography use cases are out of scope for v1.
Filename for the generated output. Defaults to `output.<ext>`.