Convert documents
convert_documentConvert one or many documents between DOCX, PDF, ODT, RTF, HTML, Markdown, LaTeX, TXT, JSON and PNG. Save outputs beside inputs or in a chosen folder, with optional comments and tracked changes.
Instructions
Convert one or many documents between docx, doc (read), pdf, odt, rtf, html, md, tex, txt, json and png (first page) with WordCraft. markup=true prints comments and tracked changes (Print Markup). Outputs go next to each input or into output_dir; nothing is replaced unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markup | No | Print Markup: tracked changes marked up and comments beside each page (pdf / png), a comment list (html / md / txt). | |
| formats | No | Outputs: docx (Word, editable), pdf, odt (OpenDocument), rtf, html, md (Markdown), tex (LaTeX), txt, json (WordCraft document model) and png (one image per page: <name>_p1.png...). | |
| input_dir | No | ||
| overwrite | No | Replace existing outputs. | |
| input_path | No | ||
| output_dir | No | Absolute output folder (default: next to the input; required for new documents). | |
| input_paths | No | ||
| output_path | No | Absolute output file for the first format (its extension must match). |