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 ( ). Quick start Commands read Extract plain text. replace Find/replace text. insert Insert text at start/end. headings Apply Heading 1/2/3 to matching lines. header-footer Set header/footer text. page-break Insert a page break at the end. merge Merge multiple docs into one. split Split by page ranges (e.g., "1-3,4-6"). export Export to PDF or TXT. image Add or replace image at the end. Notes - If WPS is installed, t…