API Reference

Cmdlet

ConvertTo-OfficeVisioSvg

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

Exports a Visio document page to dependency-free SVG.

Remarks

Exports a Visio document page to dependency-free SVG.

Examples

Authored help example

Export a diagram to SVG.

PS>


New-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.

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

ConvertTo-OfficeVisioSvg [-BackgroundColor <String>] [-IncludeXmlDeclaration] [-NoConnectorLabelOverlapResolution] [-NoConnectorLabels] [-NoStencilArtwork] [-NoText] [-OutputPath <String>] [-PageIndex <Int32>] -Path <String> [-PixelsPerInch <Nullable`1>] [-Show] [-Transparent] [<CommonParameters>]
#
Parameter set: Path

Parameters

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

Outputs

System.String System.IO.FileInfo

ConvertTo-OfficeVisioSvg [-BackgroundColor <String>] -Document <VisioDocument> [-IncludeXmlDeclaration] [-NoConnectorLabelOverlapResolution] [-NoConnectorLabels] [-NoStencilArtwork] [-NoText] [-OutputPath <String>] [-PageIndex <Int32>] [-PixelsPerInch <Nullable`1>] [-Show] [-Transparent] [<CommonParameters>]
#
Parameter set: Document

Parameters

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

Outputs

System.String System.IO.FileInfo