Cmdlet
Export-OfficeVisioStencilPreviewGallery
Exports preview artwork from a Visio stencil package into a browsable HTML gallery.
Syntax
Export-OfficeVisioStencilPreviewGallery
[-DefaultHeight <Double>]
[-DefaultWidth <Double>]
[-IncludeUnsupportedMasters]
[-IndexFileName <String>]
[-MasterName <String[]>]
[-NoIndex]
[-NoLearnMasterDimensions]
[-NoThumbnails]
[-OutputDirectory] <String>
[-PassThru]
[-Path] <String>
[-PreviewDirectoryName <String>]
[-ThumbnailDirectoryName <String>]
[-ThumbnailHeight <Int32>]
[-ThumbnailWidth <Int32>]
[-Title <String>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create a stencil preview gallery.
$gallery = Export-OfficeVisioStencilPreviewGallery -Path .\MyShapes.vssx -OutputDirectory .\StencilGallery -Title 'Custom stencil previews' -PassThru
$gallery | Select-Object PackagePath, IndexPath, BrowserRenderableCount, ThumbnailCountExtracts preview artwork from package-backed masters and writes preview files plus an HTML index.
Parameters
- -DefaultHeight Double
- Default height for package-backed stencils when dimensions cannot be learned.
- -DefaultWidth Double
- Default width for package-backed stencils when dimensions cannot be learned.
- -IncludeUnsupportedMasters SwitchParameter
- Include unsupported package masters when looking for preview artwork.
- -IndexFileName String
- Generated HTML index file name.
- -MasterName String[]
- Optional master filters for package-backed catalogs.
- -NoIndex SwitchParameter
- Do not write an HTML index file.
- -NoLearnMasterDimensions SwitchParameter
- Skip reading master dimensions from package master parts.
- -NoThumbnails SwitchParameter
- Do not write browser-renderable thumbnail wrappers.
- -OutputDirectory String
- Directory that receives preview payloads, thumbnails, and the HTML index.
- -PassThru SwitchParameter
- Emit the structured gallery result after the files are written.
- -Path String
- Visio package path, such as .vsdx, .vssx, or .vstx.
- -PreviewDirectoryName String
- Subdirectory that receives extracted preview payload files.
- -ThumbnailDirectoryName String
- Subdirectory that receives generated thumbnail wrappers.
- -ThumbnailHeight Int32
- Generated thumbnail height in pixels.
- -ThumbnailWidth Int32
- Generated thumbnail width in pixels.
- -Title String
- Gallery title. When omitted, a title is derived from the package name.
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.