API Reference
Cmdlet
New-OfficeHtmlConversionOptions
Creates discoverable parsing, trust, and document settings for HTML conversion.
Remarks
Creates discoverable parsing, trust, and document settings for HTML conversion.
Examples
Resolve relative resources from a trusted report directory.
PS>
$document = New-OfficeHtmlConversionOptions -BaseUri (Resolve-Path .\Assets) -UseBodyContentsOnly
Export-OfficeHtmlImage -Path .\Report.html -OutputPath .\Report.svg -DocumentOptions $document
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
New-OfficeHtmlConversionOptions [-BaseUri <String>] [-IncludeNormalizedHtml] [-Profile <Semantic|Document|HighFidelityPrint|PositionedReview>] [-Trust <Untrusted|Trusted>] [-UseBodyContentsOnly] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BaseUri String
- Base URI used to resolve relative references.
- IncludeNormalizedHtml SwitchParameter
- Retain normalized HTML in the conversion document.
- Profile HtmlConversionProfile
- Built-in conversion profile.
- Possible values:
Semantic,Document,HighFidelityPrint,PositionedReview - Trust HtmlInputTrust
- Input trust level.
- Possible values:
Untrusted,Trusted - UseBodyContentsOnly SwitchParameter
- Convert only body contents.
Outputs
OfficeIMO.Html.HtmlConversionDocumentOptions