# New-OfficeVisioImageOptions

Creates discoverable page and rendering settings for Export-OfficeVisioImage.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Visio.VisioImageExportOptions`

**Source**

[NewOfficeVisioImageOptionsCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Visio/NewOfficeVisioImageOptionsCommand.cs#L14) 

Creates discoverable page and rendering settings for Export-OfficeVisioImage.

## Syntax

```
New-OfficeVisioImageOptions
[-Font <String>]
[-FontCollectionIndex <Int32>]
[-FontPath <String>]
[-IncludeSvgXmlDeclaration]
[-MaximumDegreeOfParallelism <Int32>]
[-MaximumOutputCount <Int32>]
[-MaximumOutputHeight <Int32>]
[-MaximumOutputWidth <Int32>]
[-MaximumRasterPixelCount <Int64>]
[-MaximumTotalEncodedBytes <Int64>]
[-MaximumTotalRasterPixelCount <Int64>]
[-NoConnectorLabelOverlapResolution]
[-NoConnectorLabels]
[-NoStencilArtwork]
[-NoText]
[-RasterOverflowBehavior <ReduceScale|Throw>]
[-RenderTimeoutSeconds <Double>]
[-Supersampling <Int32>]
[-TextShapingLanguage <String>]
[<CommonParameters>]
```

[#](#member-3daf2070f7e625f2c4ed80c5)

Parameter set: `Options`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Export Visio Diagrams to Images and PDF](/docs/visio/image-export/) Guide
  
  Render VSDX diagram pages to SVG, PNG, JPEG, TIFF, WebP or PDF in .NET with OfficeIMO.Visio, without Microsoft Visio installed on the machine.

## Examples

### Render a Visio page with a selected font.

```powershell
$options = New-OfficeVisioImageOptions -Font Arial -NoConnectorLabels
Export-OfficeDocumentImage -Path ./Diagram.vsdx -Page 1 -Format Svg -OutputDirectory ./Preview -Options $options
```

## Parameters

**-Font String optional**

Font face name used for text rendering.

**-FontCollectionIndex Int32 optional**

Face index within a font collection.

**-FontPath String optional**

Literal font file used for text rendering.

**-IncludeSvgXmlDeclaration SwitchParameter optional**

Include an XML declaration in SVG output.

**-MaximumDegreeOfParallelism Int32 optional**

Maximum independent renders processed concurrently.

**-MaximumOutputCount Int32 optional**

Maximum images accepted from one batch export.

**-MaximumOutputHeight Int32 optional**

Maximum output height in pixels.

**-MaximumOutputWidth Int32 optional**

Maximum output width in pixels.

**-MaximumRasterPixelCount Int64 optional**

Maximum pixels allocated for one raster image.

**-MaximumTotalEncodedBytes Int64 optional**

Maximum aggregate encoded bytes accepted from one batch.

**-MaximumTotalRasterPixelCount Int64 optional**

Maximum aggregate raster pixels accepted from one batch.

**-NoConnectorLabelOverlapResolution SwitchParameter optional**

Resolve connector-label overlaps.

**-NoConnectorLabels SwitchParameter optional**

Render connector labels.

**-NoStencilArtwork SwitchParameter optional**

Render supported stencil artwork.

**-NoText SwitchParameter optional**

Render page text.

**-RasterOverflowBehavior OfficeRasterOverflowBehavior optional**

Reduce or reject oversized raster output.

Possible values: `ReduceScale`, `Throw`

**-RenderTimeoutSeconds Double optional**

Maximum seconds allowed for one render.

**-Supersampling Int32 optional**

Raster supersampling factor.

**-TextShapingLanguage String optional**

BCP 47 language hint for text shaping.

## 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).

<!-- PowerForge markdown artifact sha256:25AED8B5965CE8C9B4FAF91EE661F47535A2C3F8036F887B9D552B7E672634F6 -->
