Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

ConvertTo-OfficeVisioSvg

Aliases: ConvertTo-VisioSvg
Module PSWriteOffice
Aliases
ConvertTo-VisioSvg
Inputs
OfficeIMO.Visio.VisioDocument System.String
Outputs
System.String System.IO.FileInfo

Exports a Visio document page to dependency-free SVG.

Syntax

ConvertTo-OfficeVisioSvg [-BackgroundColor <String>] [-IncludeXmlDeclaration] [-NoConnectorLabelOverlapResolution] [-NoConnectorLabels] [-NoStencilArtwork] [-NoText] [-Open] [-OutputPath <String>] [-PageIndex <Int32>] [-Path] <String> [-PixelsPerInch <Double>] [-Transparent] [<CommonParameters>]
#
Parameter set: Path
ConvertTo-OfficeVisioSvg [-BackgroundColor <String>] -Document <VisioDocument> [-IncludeXmlDeclaration] [-NoConnectorLabelOverlapResolution] [-NoConnectorLabels] [-NoStencilArtwork] [-NoText] [-Open] [-OutputPath <String>] [-PageIndex <Int32>] [-PixelsPerInch <Double>] [-Transparent] [<CommonParameters>]
#
Parameter set: Document

Examples

Authored help example

Export a diagram to SVG.

OfficeVisio -Path .\ServiceMap.vsdx { VisioRectangle -Text 'API' -X 2 -Y 4 }
ConvertTo-OfficeVisioSvg -Path .\ServiceMap.vsdx -OutputPath .\ServiceMap.svg -Transparent

Creates a diagram and exports the first page to dependency-free SVG.

Parameters

-BackgroundColor String optional
Background color name or hex value. Use -Transparent for transparent output.
-IncludeXmlDeclaration SwitchParameter optional
Include XML declaration in the generated SVG.
-NoConnectorLabelOverlapResolution SwitchParameter optional
Do not resolve connector label overlaps at export time.
-NoConnectorLabels SwitchParameter optional
Do not render connector labels.
-NoStencilArtwork SwitchParameter optional
Do not render built-in stencil artwork.
-NoText SwitchParameter optional
Do not render shape text.
-Open SwitchParameter optionalaliases: Show
Open the SVG after saving.
-OutputPath String optionalaliases: OutPath
Optional output SVG path.
-PageIndex Int32 optional
Zero-based page index to export.
-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePathsets: Path
Visio .vsdx path.
-PixelsPerInch Double optional
SVG pixels per Visio inch.
-Transparent SwitchParameter optional
Use transparent SVG background.
-Document VisioDocument requiredpipeline: True (ByValue)sets: Document
Visio document object.

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.