π¦ ClawHub
Tiangong Wps Word Automation
by @jirboy
Automate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to...
π‘ Examples
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"
π Tips & Best Practices
--app wps; otherwise default uses Word.--visible true if you need to watch the UI.TERMINAL
clawhub install tiangong-wps-word-automation-cn