A Python tool that converts Microsoft Word .docx files into .cgm (Computer Graphics Metafile) format via intermediate conversion steps:
DOCX β PDF β SVG β CGM
- π Automatic conversion from
.docxto.cgm - π Converts each page to separate
.svgand.cgm - ποΈ Organized output in dedicated folders
- π§© Modular and extensible Python code
Ensure the following software and Python packages are installed:
pip install docx2pdf pymupdf cairosvgRun the script:
python main.py- Each page of the
.docxis saved as:page_1.svg,page_2.svg, ...page_1.cgm,page_2.cgm, ...
This project is licensed under the MIT License.