# New-OfficeHtmlConversionOptions

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

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Html.HtmlConversionDocumentOptions`

**Source**

[NewOfficeHtmlConversionOptionsCommand.cs:16](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Html/NewOfficeHtmlConversionOptionsCommand.cs#L16) 

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

## Syntax

```
New-OfficeHtmlConversionOptions
[-BaseUri <String>]
[-IncludeNormalizedHtml]
[-Profile <Semantic|Document|HighFidelityPrint|PositionedReview>]
[-Trust <Untrusted|Trusted>]
[-UseBodyContentsOnly]
[<CommonParameters>]
```

[#](#method-new-officehtmlconversionoptions-string-switchparameter-htmlconversionprofile-htmlinputtrust-switchparameter)

Parameter set: `All Parameter Sets`

## Examples

### Resolve relative resources from a trusted report directory.

```powershell
$document = New-OfficeHtmlConversionOptions -BaseUri (Resolve-Path .\Assets) -UseBodyContentsOnly
Export-OfficeHtmlImage -Path .\Report.html -OutputPath .\Report.svg -DocumentOptions $document
```

## Parameters

**-BaseUri String optional**

Base URI used to resolve relative references.

**-IncludeNormalizedHtml SwitchParameter optional**

Retain normalized HTML in the conversion document.

**-Profile HtmlConversionProfile optional**

Built-in conversion profile.

Possible values: `Semantic`, `Document`, `HighFidelityPrint`, `PositionedReview`

**-Trust HtmlInputTrust optional**

Input trust level.

Possible values: `Untrusted`, `Trusted`

**-UseBodyContentsOnly SwitchParameter optional**

Convert only body contents.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:FCB9EA7B2D765863D82C1BABE2CB9EA1F61161448BE5E40A67BBFB7CEBC6BD2C -->
