# HtmlRenderOptions

Shared layout and safety options used by HTML image and PDF rendering.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRenderOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L19)

**Base**

`OfficeImageExportOptions`

Shared layout and safety options used by HTML image and PDF rendering.

## Inheritance

- OfficeImageExportOptions
- HtmlRenderOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Convert HTML to PDF](/docs/html/html-to-pdf/) Guide
  
  Convert HTML pages and reports to PDF in .NET without a browser, with page size, margins, extra CSS, headers and footers, and local images and fonts.
- [Render HTML to Images and Convert to Word, Markdown and RTF](/docs/html/render-and-convert/) Guide
  
  Render HTML to PNG, JPEG, WebP, TIFF or SVG screenshots and page images, and convert HTML into editable Word, Markdown or RTF documents.
- [Read MHTML Web Archives and Site Bundles](/docs/html/mhtml-and-site-bundles/) Guide
  
  Open MHTML web archives or zipped websites, read their HTML and resources, create new archives, and convert them to PDF or images offline.
- [OfficeIMO.Html](/products/html/) Guide
  
  Parse HTML, resolve resources safely, and render web content into OfficeIMO models. Add focused bridges only for MHTML, RTF, email, or PDF workflows.

## Usage

Explore 12 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [HtmlRenderOptions.Clone](/api/html/officeimo-html-htmlrenderoptions/#method-clone)
- Method [HtmlRenderOptions.UseBrowserUserAgentStyles](/api/html/officeimo-html-htmlrenderoptions/#method-usebrowseruseragentstyles)
- Method [HtmlRenderOptions.UseTextHyphenationLexicon](/api/html/officeimo-html-htmlrenderoptions/#method-usetexthyphenationlexicon-officeimo-drawing-officetexthyphenationlexicon)
- Property [HtmlRenderRequest.Options](/api/html/officeimo-html-htmlrenderrequest/#property-options)

### Accepted by parameters 8

- Method [HtmlConversionDocument.CreateVisibleContentDocumentResultAsync](/api/html/officeimo-html-htmlconversiondocument/#method-createvisiblecontentdocumentresultasync-officeimo-html-htmlrenderoptions-threading-cancellationtoken) parameter `options`
- Method [HtmlEditableLayoutProjector.Project](/api/html/officeimo-html-htmleditablelayoutprojector/#method-project-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions-officeimo-html-htmlcssmediacontext-officeimo-html-htmleditablelayoutregionkinds-nullable-system-int32) parameter `renderOptions`
- Method [HtmlRenderEngine.Render](/api/html/officeimo-html-htmlrenderengine/#method-render-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions) parameter `options`
- Method [HtmlRenderEngine.RenderAsync](/api/html/officeimo-html-htmlrenderengine/#method-renderasync-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions-threading-cancellationtoken) parameter `options`
- Method [HtmlRenderRequest.Create](/api/html/officeimo-html-htmlrenderrequest/#method-create-officeimo-html-htmlrenderintentprofile-officeimo-html-htmlrenderencoder-officeimo-html-htmlrenderoptions-officeimo-html-htmlrenderdocumentstate) parameter `options`
- Method [HtmlRenderRequest.WithOptions](/api/html/officeimo-html-htmlrenderrequest/#method-withoptions-officeimo-html-htmlrenderoptions) parameter `options`
- Method [HtmlResourceSession.Resolve](/api/html/officeimo-html-htmlresourcesession/#method-resolve-officeimo-html-htmlresourcemanifest-officeimo-html-htmlrenderoptions-officeimo-html-htmldiagnosticreport-threading-cancellationtoken) parameter `options`
- Method [HtmlResourceSession.ResolveAsync](/api/html/officeimo-html-htmlresourcesession/#method-resolveasync-officeimo-html-htmlresourcemanifest-officeimo-html-htmlrenderoptions-officeimo-html-htmldiagnosticreport-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public HtmlRenderOptions()` [#](#constructor-ctor)

[HtmlRenderOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L19)

Creates the default paged print configuration. Select [HtmlRenderMode.Continuous](/api/html/officeimo-html-htmlrendermode/) for an unpaginated screenshot.

## Methods

`public virtual HtmlRenderOptions Clone()` [#](#method-clone)

[HtmlRenderOptions.cs:294](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L294)

Creates an independent options snapshot.

Returns

`HtmlRenderOptions`

`public HtmlRenderOptions UseBrowserUserAgentStyles()` [#](#method-usebrowseruseragentstyles)

[HtmlRenderOptions.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L121)

Selects the bounded browser user-agent defaults and a generic serif fallback. Authored CSS continues to override these defaults.

Returns

`HtmlRenderOptions`

`public HtmlRenderOptions UseTextHyphenationLexicon(OfficeTextHyphenationLexicon? lexicon)` [#](#method-usetexthyphenationlexicon-officeimo-drawing-officetexthyphenationlexicon)

[HtmlRenderOptions.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L131)

Uses or clears a shared immutable hyphenation lexicon for CSS hyphens:auto.

Parameters

**lexicon OfficeIMO.Drawing.OfficeTextHyphenationLexicon? required**

Returns

`HtmlRenderOptions`

## Inherited Methods

`public OfficeImageExportResult EnsureAccepted(OfficeImageExportResult result)` [#](#method-ensureaccepted-officeimageexportresult)

Inherited from OfficeImageExportOptions

Parameters

**result OfficeImageExportResult required**

Returns

`OfficeImageExportResult`

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public double GetEffectiveScale(double logicalWidth, double logicalHeight)` [#](#method-geteffectivescale-double-double)

Inherited from OfficeImageExportOptions

Parameters

**logicalWidth double required**

**logicalHeight double required**

Returns

`double`

`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?`

## Properties

`public int PageIndex { get; set; }` [#](#property-pageindex)

[HtmlRenderOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L10)

Zero-based page used by single-image conversion and saving operations.

`public IReadOnlyList<int>? PageSelection { get; set; }` [#](#property-pageselection)

[HtmlRenderOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L17)

Caller-ordered one-based page numbers within the retained surfaces for batch image export. Null exports all retained surfaces. Single-image operations use their selected page instead. This does not change HTML layout, PDF output, or the request's page set.

`public HtmlRenderMode Mode { get; set; }` [#](#property-mode)

[HtmlRenderOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L38)

Layout mode. Defaults to paged print output; select Continuous for an unpaginated screenshot.

`public HtmlRenderFidelityPolicy FidelityPolicy { get; set; }` [#](#property-fidelitypolicy)

[HtmlRenderOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L44)

Determines whether diagnosed approximations, omissions, or failures may be returned. Strict rendering rejects every warning or error after collecting the complete diagnostic report.

`public bool? ProjectSerializedShadowRoots { get; set; }` [#](#property-projectserializedshadowroots)

[HtmlRenderOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L51)

Projects Chromium MHTML template shadowmode snapshots into static render content. Null uses the source-format default (enabled for MHTML, disabled for ordinary HTML). This is a diagnosed approximation of shadow DOM composition, not a live shadow tree.

`public double ViewportWidth { get; set; }` [#](#property-viewportwidth)

[HtmlRenderOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L54)

Viewport width for continuous rendering and print-fit media selection, in CSS pixels.

`public double? ViewportHeight { get; set; }` [#](#property-viewportheight)

[HtmlRenderOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L57)

Optional minimum continuous-surface height, in CSS pixels.

`public OfficePageSize PageSize { get; set; }` [#](#property-pagesize)

[HtmlRenderOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L60)

Physical page size used by paged rendering.

`public bool HonorCssPageRules { get; set; }` [#](#property-honorcsspagerules)

[HtmlRenderOptions.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L63)

When true, generic print @page size and margin declarations override the paged defaults.

`public HtmlRenderMargins Margins { get; set; }` [#](#property-margins)

[HtmlRenderOptions.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L66)

Page or continuous-surface margins measured in CSS pixels.

`public string DefaultFontFamily { get; set; }` [#](#property-defaultfontfamily)

[HtmlRenderOptions.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L69)

Default font family used when CSS does not select one.

`public bool AllowSystemFontFallback { get; set; }` [#](#property-allowsystemfontfallback)

[HtmlRenderOptions.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L73)

Resolves the configured default family and installed faces in system-UI or mathematical fallback lists through the owned font loader. Disable this for a portable render that uses only supplied/document fonts.

`public double DefaultFontSize { get; set; }` [#](#property-defaultfontsize)

[HtmlRenderOptions.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L80)

Default CSS font size in pixels.

`public double DefaultLineHeight { get; set; }` [#](#property-defaultlineheight)

[HtmlRenderOptions.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L97)

Fallback line-height multiplier when selected font metrics are unavailable. Assign explicitly to override missing or normal CSS line height with this multiplier. Authored numeric, length and percentage line heights retain precedence.

`public HtmlRenderUserAgentStyleMode UserAgentStyles { get; set; }` [#](#property-useragentstyles)

[HtmlRenderOptions.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L107)

Bounded user-agent style defaults applied before authored CSS. The document profile preserves the existing OfficeIMO layout contract.

`public OfficeTextHyphenationCallback? TextHyphenationCallback { get; set; }` [#](#property-texthyphenationcallback)

[HtmlRenderOptions.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L127)

Optional caller-owned dictionary or algorithm that overrides embedded language patterns for CSS hyphens:auto.

`public HtmlRenderMediaFeatures MediaFeatures { get; set; }` [#](#property-mediafeatures)

[HtmlRenderOptions.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L136)

Deterministic device and user-preference values exposed to CSS media queries.

`public IList<string> AdditionalStylesheets { get; }` [#](#property-additionalstylesheets)

[HtmlRenderOptions.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L142)

Caller-provided author stylesheets appended after document stylesheets. Each entry participates in the normal bounded cascade and resource policy.

`public Uri? BaseUri { get; set; }` [#](#property-baseuri)

[HtmlRenderOptions.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L145)

Optional base URI used to resolve links and resource references.

`public HtmlUrlPolicy UrlPolicy { get; set; }` [#](#property-urlpolicy)

[HtmlRenderOptions.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L148)

URL policy applied before links or resources enter the rendered result.

`public HtmlUrlPolicy? ResourceUrlPolicy { get; set; }` [#](#property-resourceurlpolicy)

[HtmlRenderOptions.cs:155](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L155)

Optional separate policy for images, stylesheets, fonts, and other render resources. When omitted, [HtmlRenderOptions.UrlPolicy](/api/html/officeimo-html-htmlrenderoptions/) is used. This lets package or application resolvers authorize a resource origin without authorizing the same scheme for emitted hyperlinks.

`public HtmlRenderResourceResolver? ResourceResolver { get; set; }` [#](#property-resourceresolver)

[HtmlRenderOptions.cs:158](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L158)

Optional application-supplied asynchronous resolver for policy-approved external resources.

`public TimeSpan ResourceTimeout { get; set; }` [#](#property-resourcetimeout)

[HtmlRenderOptions.cs:171](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L171)

Deadline after which one resolver invocation's cancellation token is cancelled.

`public int MaxConcurrentResourceLoads { get; set; }` [#](#property-maxconcurrentresourceloads)

[HtmlRenderOptions.cs:174](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L174)

Maximum asynchronous resolver invocations allowed to run concurrently.

`public long MaxResourceBytes { get; set; }` [#](#property-maxresourcebytes)

[HtmlRenderOptions.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L177)

Maximum bytes accepted from one resolved resource.

`public long MaxTotalResourceBytes { get; set; }` [#](#property-maxtotalresourcebytes)

[HtmlRenderOptions.cs:180](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L180)

Maximum total bytes accepted from external resources in one render operation.

`public int MaxResourceCount { get; set; }` [#](#property-maxresourcecount)

[HtmlRenderOptions.cs:183](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L183)

Maximum number of external resources accepted in one render operation.

`public int MaxResourceRequests { get; set; }` [#](#property-maxresourcerequests)

[HtmlRenderOptions.cs:186](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L186)

Maximum resolver invocations attempted in one render operation, including misses and failures.

`public int MaxStylesheetImportDepth { get; set; }` [#](#property-maxstylesheetimportdepth)

[HtmlRenderOptions.cs:189](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L189)

Maximum recursive @import depth accepted for external stylesheets.

`public int MaxSurfaceWidth { get; set; }` [#](#property-maxsurfacewidth)

[HtmlRenderOptions.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L192)

Maximum width of any generated image surface in output pixels.

`public int MaxSurfaceHeight { get; set; }` [#](#property-maxsurfaceheight)

[HtmlRenderOptions.cs:195](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L195)

Maximum height of any generated image surface in output pixels.

`public int MaxPageCount { get; set; }` [#](#property-maxpagecount)

[HtmlRenderOptions.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L198)

Maximum page count accepted from one paged render operation.

`public int MaxProjectedVisuals { get; set; }` [#](#property-maxprojectedvisuals)

[HtmlRenderOptions.cs:201](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L201)

Maximum visual nodes materialized while slicing or composing retained surfaces.

`public int MaxLayoutDepth { get; set; }` [#](#property-maxlayoutdepth)

[HtmlRenderOptions.cs:204](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L204)

Maximum element nesting depth processed by the layout engine.

`public int MaxInputCharacters { get; set; }` [#](#property-maxinputcharacters)

[HtmlRenderOptions.cs:210](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L210)

Maximum UTF-16 characters accepted in the source HTML string. The default leaves enough room for the default total resource budget when resources are embedded as base64 data URIs.

`public int MaxHtmlNodes { get; set; }` [#](#property-maxhtmlnodes)

[HtmlRenderOptions.cs:214](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L214)

Maximum DOM nodes accepted after parsing and before style or layout work begins.

`public int MaxBackgroundImageTiles { get; set; }` [#](#property-maxbackgroundimagetiles)

[HtmlRenderOptions.cs:222](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L222)

Maximum total repeated background-image tiles accepted in one render operation.

`public int MaxBackgroundImageLayers { get; set; }` [#](#property-maxbackgroundimagelayers)

[HtmlRenderOptions.cs:225](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L225)

Maximum background-image layers accepted on one element.

`public int MaxBoxShadowLayers { get; set; }` [#](#property-maxboxshadowlayers)

[HtmlRenderOptions.cs:228](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L228)

Maximum CSS box-shadow layers accepted on one element.

`public int MaxTextShadowLayers { get; set; }` [#](#property-maxtextshadowlayers)

[HtmlRenderOptions.cs:231](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L231)

Maximum CSS text-shadow layers retained on one element, from 1 to 64.

`public int MaxLeaderCharacters { get; set; }` [#](#property-maxleadercharacters)

[HtmlRenderOptions.cs:234](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L234)

Maximum characters materialized for a generated CSS leader.

`public int MaxSvgForeignObjectDepth { get; set; }` [#](#property-maxsvgforeignobjectdepth)

[HtmlRenderOptions.cs:237](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L237)

Maximum nested SVG foreignObject HTML render depth.

`public int MaxSvgForeignObjectHtmlNodes { get; set; }` [#](#property-maxsvgforeignobjecthtmlnodes)

[HtmlRenderOptions.cs:240](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L240)

Maximum DOM nodes accepted by one inline SVG foreignObject HTML viewport.

`public int MaxFrameDepth { get; set; }` [#](#property-maxframedepth)

[HtmlRenderOptions.cs:243](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L243)

Maximum nested iframe srcdoc viewports rendered into one output.

`public int MaxGradientStops { get; set; }` [#](#property-maxgradientstops)

[HtmlRenderOptions.cs:254](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L254)

Maximum color stops accepted in one CSS gradient.

`public int ConicGradientQualitySegments { get; set; }` [#](#property-conicgradientqualitysegments)

[HtmlRenderOptions.cs:257](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L257)

Uniform vector quality segments used when expanding one conic gradient.

`public int MaxGridTracks { get; set; }` [#](#property-maxgridtracks)

[HtmlRenderOptions.cs:260](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L260)

Maximum explicit or implicit tracks accepted on either grid axis.

`public int MaxColumnCount { get; set; }` [#](#property-maxcolumncount)

[HtmlRenderOptions.cs:263](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L263)

Maximum generated columns accepted in one multi-column formatting context.

`public int MaxTableRows { get; set; }` [#](#property-maxtablerows)

[HtmlRenderOptions.cs:266](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L266)

Maximum rows accepted in one rendered HTML table.

`public int MaxTableColumns { get; set; }` [#](#property-maxtablecolumns)

[HtmlRenderOptions.cs:269](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L269)

Maximum columns accepted in one rendered HTML table.

`public int MaxCollapsedTableBorderSegments { get; set; }` [#](#property-maxcollapsedtablebordersegments)

[HtmlRenderOptions.cs:272](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L272)

Maximum candidate edge segments resolved for one collapsed-border table.

`public int MaxLayoutOperations { get; set; }` [#](#property-maxlayoutoperations)

[HtmlRenderOptions.cs:275](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L275)

Maximum element layout operations allowed in one render.

`public int MaxRunningStringCharacters { get; set; }` [#](#property-maxrunningstringcharacters)

[HtmlRenderOptions.cs:278](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L278)

Maximum normalized UTF-16 characters retained in one CSS running-string value.

`public HtmlCssMediaContext MediaContext { get; }` [#](#property-mediacontext)

[HtmlRenderOptions.cs:284](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L284)

Gets the CSS media context selected by an explicit render request, or by the legacy continuous/screen and paged/print mapping when no request is active.

`public double PageWidth { get; }` [#](#property-pagewidth)

[HtmlRenderOptions.cs:288](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L288)

Gets the paged surface width in CSS pixels.

`public double PageHeight { get; }` [#](#property-pageheight)

[HtmlRenderOptions.cs:291](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L291)

Gets the paged surface height in CSS pixels.

## Inherited Properties

`public OfficeImageExportFormat Format { get; set; }` [#](#property-format)

Inherited from OfficeImageExportOptions

`public OfficePageSelector? PageSelector { get; set; }` [#](#property-pageselector)

Inherited from OfficeImageExportOptions

`public OfficeImageExportFileConflictPolicy FileConflictPolicy { get; set; }` [#](#property-fileconflictpolicy)

Inherited from OfficeImageExportOptions

`public bool FailOnLoss { get; set; }` [#](#property-failonloss)

Inherited from OfficeImageExportOptions

`public OfficeChartRenderOptions ChartRendering { get; set; }` [#](#property-chartrendering)

Inherited from OfficeImageExportOptions

`public double Scale { get; set; }` [#](#property-scale)

Inherited from OfficeImageExportOptions

`public int? MaximumOutputWidth { get; set; }` [#](#property-maximumoutputwidth)

Inherited from OfficeImageExportOptions

`public int? MaximumOutputHeight { get; set; }` [#](#property-maximumoutputheight)

Inherited from OfficeImageExportOptions

`public OfficeColor BackgroundColor { get; set; }` [#](#property-backgroundcolor)

Inherited from OfficeImageExportOptions

`public OfficeRasterEncodingOptions RasterEncoding { get; set; }` [#](#property-rasterencoding)

Inherited from OfficeImageExportOptions

`public bool SvgTextAsPaths { get; set; }` [#](#property-svgtextaspaths)

Inherited from OfficeImageExportOptions

`public long MaximumRasterPixels { get; set; }` [#](#property-maximumrasterpixels)

Inherited from OfficeImageExportOptions

`public OfficeRasterOverflowBehavior RasterOverflowBehavior { get; set; }` [#](#property-rasteroverflowbehavior)

Inherited from OfficeImageExportOptions

`public IOfficeRasterImageCodec? ImageCodec { get; set; }` [#](#property-imagecodec)

Inherited from OfficeImageExportOptions

`public double? TargetDpi { get; set; }` [#](#property-targetdpi)

Inherited from OfficeImageExportOptions

`public OfficeFontFaceCollection Fonts { get; set; }` [#](#property-fonts)

Inherited from OfficeImageExportOptions

`public IOfficeTextShapingProvider? TextShapingProvider { get; set; }` [#](#property-textshapingprovider)

Inherited from OfficeImageExportOptions

`public string? TextShapingLanguage { get; set; }` [#](#property-textshapinglanguage)

Inherited from OfficeImageExportOptions

`public OfficeImageExportPolicy Policy { get; set; }` [#](#property-policy)

Inherited from OfficeImageExportOptions

`public IProgress<OfficeImageExportProgress>? Progress { get; set; }` [#](#property-progress)

Inherited from OfficeImageExportOptions

`public int MaximumOutputCount { get; set; }` [#](#property-maximumoutputcount)

Inherited from OfficeImageExportOptions

`public long MaximumTotalRasterPixels { get; set; }` [#](#property-maximumtotalrasterpixels)

Inherited from OfficeImageExportOptions

`public long MaximumTotalEncodedBytes { get; set; }` [#](#property-maximumtotalencodedbytes)

Inherited from OfficeImageExportOptions

`public TimeSpan RenderTimeout { get; set; }` [#](#property-rendertimeout)

Inherited from OfficeImageExportOptions

`public int MaximumDegreeOfParallelism { get; set; }` [#](#property-maximumdegreeofparallelism)

Inherited from OfficeImageExportOptions

`public virtual double LogicalUnitsPerInch { get; }` [#](#property-logicalunitsperinch)

Inherited from OfficeImageExportOptions

## Fields

`public const double CssPixelsPerInch` [#](#field-csspixelsperinch)

[HtmlRenderOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderOptions.cs#L22)

CSS reference pixel density used for physical page conversion.

Value: `96`

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