Skip to main content

Visio VSDX to File Converter

A Python utility for batch converting Microsoft Visio VSDX files to other using the Visio COM interface

Possible file formats: "html", "png", "jpg", "gif", "tif", "bmp", "emf", "wmf", "svg"


Features

  • Convert a single .vsdx file to individual files (one per Visio page)
  • Batch-convert all .vsdx files in a directory
  • Leverages the official Microsoft Visio COM interface for reliable conversion

Requirements

  • Windows operating system
  • Microsoft Visio installed (required for the COM Automation)
  • Python 3.7+

Installation

pip install visioconverter

Clone or download this repository. Usage

  1. Import and Use in Python from converter import Converter

Convert a single .vsdx file to other format

other_files = Converter.vsdx2other(
    src_path="diagram.vsdx",
    out_format="png",         # Possible: "html", "png", "jpg", "gif", "tif", "bmp", "emf", "wmf", "svg"
    out_dir="output_svgs",    # optional, defaults to same as source
    visible=False             # optional, show Visio UI?
)

Batch-convert all .vsdx files in a folder

Converter.folder_vsdx2other(
    src_folder="vsdx_files",
    out_format="png",          # Possible: "html", "png", "jpg", "gif", "tif", "bmp", "emf", "wmf", "svg"
    out_folder="output_files",  # optional, defaults to source folder
    visible=False   
)
  1. From Command Line No CLI interface is included by default. See Python sample above or integrate as needed.

Reference

Converter.vsdx2other(src_path, out_dir=None, visible=False) -> list[str]
    src_path: Path to a .vsdx file.
    out_dir: Output directory (default: same as source file).
    visible: Whether to show the Visio UI (default: False).
    Returns list of file paths created.

Converter.folder_vsdx2other(src_folder, out_folder=None, visible=False)
    src_folder: Folder containing .vsdx files.
    out_folder: Where to save files (default: same as each source file).
    visible: Whether to show the Visio UI.

Notes

Requires Microsoft Visio to be installed and licensed on your system. Only Windows is supported (due to COM automation). Each page in a Visio document is exported as a separate SVG (_pageX.svg). Error messages are printed to stdout.

Metadata

Release files for visioconverter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visioconverter 1.0.0
File Size Uploaded Provenance
visioconverter-1.0.0.tar.gz 94.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for visioconverter 1.0.0
File Interpreter ABI Platform
visioconverter-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 102.6 kB

Release files / visioconverter-1.0.0.tar.gz

Download URL visioconverter-1.0.0.tar.gz
Size 94.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cd08cf0644668e61ea22ca058c4d04b7fce091ae7e4ddd6c60959bdf60cac445
BLAKE2b-256 checksum
How to use checksums
8a1954427b2e663f83c1b7f667e4a2e53bdb9b90c7a1822e29a4ab4de97926ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / visioconverter-1.0.0-py3-none-any.whl

Download URL visioconverter-1.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d8276729e073abfc23efbbccbc669302f36240e450782b2a39932311f065bdb
BLAKE2b-256 checksum
How to use checksums
1554904b7b1438aed0590db49398ceb9243ac2b5ca64da38e7ffb0b24db29efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for visioconverter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page