API Reference
Cmdlet
Export-OfficeVisioStencilPreviewGallery
Exports preview artwork from a Visio stencil package into a browsable HTML gallery.
Remarks
Exports preview artwork from a Visio stencil package into a browsable HTML gallery.
Examples
Create a stencil preview gallery.
PS>
$gallery = Export-OfficeVisioStencilPreviewGallery -Path .\MyShapes.vssx -OutputDirectory .\StencilGallery -Title 'Custom stencil previews'
$gallery | Select-Object PackagePath, IndexPath, BrowserRenderableCount, ThumbnailCount
Extracts preview artwork from package-backed masters and writes preview files plus an HTML index.
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
Export-OfficeVisioStencilPreviewGallery [-DefaultHeight <Double>] [-DefaultWidth <Double>] [-IncludeUnsupportedMasters] [-IndexFileName <String>] [-MasterName <String[]>] [-NoIndex] [-NoLearnMasterDimensions] [-NoThumbnails] -OutputDirectory <String> -Path <String> [-PreviewDirectoryName <String>] [-ThumbnailDirectoryName <String>] [-ThumbnailHeight <Int32>] [-ThumbnailWidth <Int32>] [-Title <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- 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.
- 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.
Outputs
OfficeIMO.Visio.Stencils.VisioStencilPreviewGallery