API Reference

Cmdlet

New-OfficeHtmlConversionOptions

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Html.HtmlConversionDocumentOptions

Creates discoverable parsing, trust, and document settings for HTML conversion.

Remarks

Creates discoverable parsing, trust, and document settings for HTML conversion.

Examples

Authored help example

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 Sets

Parameters

BaseUri String optionalposition: namedpipeline: False
Base URI used to resolve relative references.
IncludeNormalizedHtml SwitchParameter optionalposition: namedpipeline: False
Retain normalized HTML in the conversion document.
Profile HtmlConversionProfile optionalposition: namedpipeline: Falsevalues: 4
Built-in conversion profile.
Possible values: Semantic, Document, HighFidelityPrint, PositionedReview
Trust HtmlInputTrust optionalposition: namedpipeline: Falsevalues: 2
Input trust level.
Possible values: Untrusted, Trusted
UseBodyContentsOnly SwitchParameter optionalposition: namedpipeline: False
Convert only body contents.

Outputs

OfficeIMO.Html.HtmlConversionDocumentOptions