# ConvertTo-OfficeVisioSvg

Exports a Visio document page to dependency-free SVG.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: ConvertTo-VisioSvg

**Module**

`PSWriteOffice`

**Aliases**

`ConvertTo-VisioSvg`

**Inputs**

`OfficeIMO.Visio.VisioDocument` `System.String`

**Outputs**

`System.String` `System.IO.FileInfo`

**Source**

[ConvertToOfficeVisioSvgCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Visio/ConvertToOfficeVisioSvgCommand.cs#L22) 

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>]
```

[#](#method-convertto-officevisiosvg-string-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-string-int32-string-double-switchparameter)

Parameter set: `Path`

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

[#](#method-convertto-officevisiosvg-string-visiodocument-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-string-int32-double-switchparameter)

Parameter set: `Document`

## Examples

### Export a diagram to SVG.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:AA1008BA5F840C11A7C273217D07510AF83F36D6A2C3E3DFB29E358F6AE9EA99 -->
