Convert DOC, DOCX, and PDF files to TXT plain text format.
Usage
uv run {baseDir}/scripts/convert.py <输入文件路径> [--output <输出文件路径>]
Parameter Description
| Parameter | Description |
|---|---|
<输入文件路径> |
The document file to convert (supports .doc, .docx, .pdf) |
--output |
Optional, output txt file path (defaults to a .txt file with the same name in the same directory) |
Example
Convert PDF to TXT:
uv run skills/doc-to-txt/scripts/convert.py document.pdf
Specify output file:
uv run skills/doc-to-txt/scripts/convert.py report.docx --output output.txt