Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Export-OfficeVisioImage

Namespace PSWriteOffice
Inputs
OfficeIMO.Visio.VisioDocument
Outputs
OfficeIMO.Drawing.OfficeImageExportResult

Exports selected Visio pages through the format-neutral OfficeIMO image pipeline.

Remarks

Exports selected Visio pages through the format-neutral OfficeIMO image pipeline.

Examples

Authored help example

Export every page as PNG.

PS>


Export-OfficeVisioImage -Path .\diagram.vsdx -OutputPath .\Images -Format Png
        

Writes one PNG per selected page. Add -PassThru to receive one result object per file.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Export-OfficeVisioImage [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-Options <VisioImageExportOptions>] -OutputPath <String> [-PassThru] -Path <String> [<CommonParameters>]
#
Parameter set: Path

Parameters

Format OfficeImageExportFormat optionalposition: namedpipeline: Falsevalues: 5
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp
Options VisioImageExportOptions optionalposition: namedpipeline: False
Optional page selection, size, concurrency, and rendering settings.
OutputPath String requiredposition: 1pipeline: False
Destination folder.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit one structured image export result per saved page.
Path String requiredposition: 0pipeline: Falsealiases: FilePath
Path to a Visio document.

Outputs

OfficeIMO.Drawing.OfficeImageExportResult

Export-OfficeVisioImage -Document <VisioDocument> [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-Options <VisioImageExportOptions>] -OutputPath <String> [-PassThru] [<CommonParameters>]
#
Parameter set: Document

Parameters

Document VisioDocument requiredposition: namedpipeline: True (ByValue)
Open Visio document instance.
Format OfficeImageExportFormat optionalposition: namedpipeline: Falsevalues: 5
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp
Options VisioImageExportOptions optionalposition: namedpipeline: False
Optional page selection, size, concurrency, and rendering settings.
OutputPath String requiredposition: 1pipeline: False
Destination folder.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit one structured image export result per saved page.

Outputs

OfficeIMO.Drawing.OfficeImageExportResult