# HtmlRenderEngine

First-party browser-free HTML layout entry point shared by image and PDF adapters.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRenderEngine.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderEngine.cs#L21)

**Modifiers**

static

First-party browser-free HTML layout entry point shared by image and PDF adapters.

## Inheritance

- object
- HtmlRenderEngine

Filter members 

Show inherited

## Methods

`public static HtmlRenderResult Execute(HtmlConversionDocument document, HtmlRenderRequest request, CancellationToken cancellationToken = default)` [#](#method-execute-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderrequest-threading-cancellationtoken)

[HtmlRenderEngine.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderEngine.cs#L40)

Resolves an explicit render request into a backend-neutral display list. The intended output adapter cannot change the request's CSS, layout, pagination, or page-set axes.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**request OfficeIMO.Html.HtmlRenderRequest required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`HtmlRenderResult`

`public static async Task<HtmlRenderResult> ExecuteAsync(HtmlConversionDocument document, HtmlRenderRequest request, CancellationToken cancellationToken = default)` [#](#method-executeasync-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderrequest-threading-cancellationtoken)

Asynchronously resolves resources and prepares an explicit render request as one retained backend-neutral result.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**request OfficeIMO.Html.HtmlRenderRequest required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<HtmlRenderResult>`

`public static HtmlRenderDocument Render(HtmlConversionDocument document, HtmlRenderOptions? options = null)` [#](#method-render-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions)

[HtmlRenderEngine.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderEngine.cs#L21)

Renders a parsed HTML source into a backend-neutral continuous or paged visual document.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**options OfficeIMO.Html.HtmlRenderOptions? = null optional**

Returns

`HtmlRenderDocument`

`public static async Task<HtmlRenderDocument> RenderAsync(HtmlConversionDocument document, HtmlRenderOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-renderasync-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions-threading-cancellationtoken)

Renders a parsed HTML source while asynchronously resolving policy-approved external resources through the configured resolver.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**options OfficeIMO.Html.HtmlRenderOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<HtmlRenderDocument>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:87197116AB0CD8CA396567C6F444EFB27ADECB6D7A8F980A823C2ADEE12E1FEF -->
