wps-word-automation
SKILL.md
WPS/Word Automation (Windows)
Use the bundled Python script to control Word or WPS via COM.
Requirements
- Windows with Microsoft Word or WPS Writer installed.
- Python + pywin32 (
python -m pip install pywin32).
Quick start
python {baseDir}/scripts/wps_word_automation.py read --input "C:\path\file.docx"
python {baseDir}/scripts/wps_word_automation.py replace --input "C:\path\file.docx" --find "旧" --replace "新" --save "C:\path\out.docx"
python {baseDir}/scripts/wps_word_automation.py export --input "C:\path\file.docx" --format pdf --output "C:\path\out.pdf"