Cmdlet
New-OfficeVisioImageOptions
Creates discoverable page and rendering settings for Export-OfficeVisioImage.
Syntax
New-OfficeVisioImageOptions
[-BackgroundColor <String>]
[-IncludeSvgXmlDeclaration]
[-MaximumDegreeOfParallelism <Int32>]
[-MaximumOutputCount <Int32>]
[-MaximumOutputHeight <Int32>]
[-MaximumOutputWidth <Int32>]
[-MaximumRasterPixels <Int64>]
[-MaximumTotalEncodedBytes <Int64>]
[-MaximumTotalRasterPixels <Int64>]
[-PageCount <Int32>]
[-PageIndex <Int32>]
[-RasterOverflowBehavior <ReduceScale| Throw>]
[-RenderConnectorLabels]
[-RenderStencilArtwork]
[-RenderText]
[-RenderTimeoutSeconds <Double>]
[-ResolveConnectorLabelOverlaps]
[-Scale <Double>]
[-Supersampling <Int32>]
[-TargetDpi <Double>]
[-TextShapingLanguage <String>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Render the first Visio page with text and connector labels.
$options = New-OfficeVisioImageOptions -PageIndex 0 -PageCount 1 -RenderText -RenderConnectorLabels
Export-OfficeVisioImage -Path .\Diagram.vsdx -OutputPath .\Preview -Format Svg -Options $optionsParameters
- -BackgroundColor String
- Background color name or hex value.
- -IncludeSvgXmlDeclaration SwitchParameter
- Include an XML declaration in SVG output.
- -MaximumDegreeOfParallelism Int32
- Maximum independent renders processed concurrently.
- -MaximumOutputCount Int32
- Maximum images accepted from one batch export.
- -MaximumOutputHeight Int32
- Maximum output height in pixels.
- -MaximumOutputWidth Int32
- Maximum output width in pixels.
- -MaximumRasterPixels Int64
- Maximum pixels allocated for one raster image.
- -MaximumTotalEncodedBytes Int64
- Maximum aggregate encoded bytes accepted from one batch.
- -MaximumTotalRasterPixels Int64
- Maximum aggregate raster pixels accepted from one batch.
- -PageCount Int32
- Maximum pages exported.
- -PageIndex Int32
- Zero-based first page index.
- -RasterOverflowBehavior OfficeRasterOverflowBehavior
- Reduce or reject oversized raster output.
- Possible values:
ReduceScale,Throw - -RenderConnectorLabels SwitchParameter
- Render connector labels.
- -RenderStencilArtwork SwitchParameter
- Render supported stencil artwork.
- -RenderText SwitchParameter
- Render page text.
- -RenderTimeoutSeconds Double
- Maximum seconds allowed for one render.
- -ResolveConnectorLabelOverlaps SwitchParameter
- Resolve connector-label overlaps.
- -Scale Double
- Output scale multiplier.
- -Supersampling Int32
- Raster supersampling factor.
- -TargetDpi Double
- Target output density in dots per inch.
- -TextShapingLanguage String
- 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.