Skip to content

malavika-suresh/Docx_to_CGM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ DOCX to CGM Converter

A Python tool that converts Microsoft Word .docx files into .cgm (Computer Graphics Metafile) format via intermediate conversion steps:
DOCX ➝ PDF ➝ SVG ➝ CGM

πŸš€ Features

  • πŸ”„ Automatic conversion from .docx to .cgm
  • πŸ“„ Converts each page to separate .svg and .cgm
  • πŸ—‚οΈ Organized output in dedicated folders
  • 🧩 Modular and extensible Python code

🧰 Prerequisites

Ensure the following software and Python packages are installed:

πŸ–₯️ External Software

🐍 Python Libraries

pip install docx2pdf pymupdf cairosvg

βš™οΈ Usage

Run the script:

python main.py

🧾 Output

  • Each page of the .docx is saved as:
    • page_1.svg, page_2.svg, ...
    • page_1.cgm, page_2.cgm, ...

πŸ“œ License

This project is licensed under the MIT License.

About

This Python project converts DOCX files to CGM format by first converting them to PDF, then to SVG, and finally to CGM using CairoSVG and UniConvertor. It automates the entire conversion pipeline with organized output in dedicated folders.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages