Extract text
extract_textExtracts plain text from WordCraft-generated DOCX, PDF, ODT, RTF, HTML, and Markdown documents, returning content up to a set character limit and optionally writing .txt files.
Instructions
Plain text of documents (docx, doc, odt, rtf, html, md, pdf made by WordCraft...). Returns the text (up to max_chars per document) and, with save_txt, also writes .txt files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_txt | No | ||
| input_dir | No | ||
| max_chars | 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). |