Skip to content

Instantly share code, notes, and snippets.

View IngmarPaetzold's full-sized avatar

IngmarPaetzold

View GitHub Profile
@ap0llo
ap0llo / Export-VisioDrawing.ps1
Last active May 15, 2024 00:18
Powershell script that exports Visio drawings in the current directory to png
# Powershell script that exports visio drawings to png
# Based on a F# script with the same purpose which can be found at
# http://stackoverflow.com/questions/1145269/visio-to-image-command-line-conversion
$outputFormat = ".png"
$inputFilePattern = "*.vsdx"
# Load Visio Interop Assembly
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Visio") > $null