# HtmlRenderPage

One continuous or paged HTML render surface in CSS-pixel coordinates.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRenderPage.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L82)

**Modifiers**

sealed

One continuous or paged HTML render surface in CSS-pixel coordinates.

## Inheritance

- object
- HtmlRenderPage

## Usage

Explore 2 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 2

- Property [HtmlRenderDocument.Pages](/api/html/officeimo-html-htmlrenderdocument/#property-pages)
- Property [HtmlRenderSurface.Page](/api/html/officeimo-html-htmlrendersurface/#property-page)

Filter members 

Show inherited

## Methods

CreateDrawing 2 overloads

`public OfficeDrawing CreateDrawing()` [#](#method-createdrawing)

[HtmlRenderPage.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L82)

Creates a dependency-free drawing snapshot for PNG or SVG rendering.

Returns

`OfficeDrawing`

`public OfficeDrawing CreateDrawing(CancellationToken cancellationToken)` [#](#method-createdrawing-threading-cancellationtoken)

[HtmlRenderPage.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L86)

Creates a dependency-free drawing snapshot for PNG or SVG rendering with cooperative cancellation.

Parameters

**cancellationToken System.Threading.CancellationToken required**

Returns

`OfficeDrawing`

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

## Properties

`public int PageNumber { get; }` [#](#property-pagenumber)

[HtmlRenderPage.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L50)

One-based page number.

`public double Width { get; }` [#](#property-width)

[HtmlRenderPage.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L53)

Page width in CSS pixels.

`public double Height { get; }` [#](#property-height)

[HtmlRenderPage.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L56)

Page height in CSS pixels.

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

[HtmlRenderPage.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L59)

Resolved page margins in CSS pixels.

`public string? PageName { get; }` [#](#property-pagename)

[HtmlRenderPage.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L62)

CSS named-page identifier selected for this page, or null for the generic page master.

`public HtmlRenderPrintProductionSettings? PrintProduction { get; }` [#](#property-printproduction)

[HtmlRenderPage.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L65)

Resolved CSS bleed and printer-mark contract, when requested for this page.

`public IReadOnlyList<HtmlRenderVisual> Visuals { get; }` [#](#property-visuals)

[HtmlRenderPage.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L68)

Ordered backend-neutral visuals on this page.

`public IReadOnlyList<HtmlRenderVisual> Scene { get; }` [#](#property-scene)

[HtmlRenderPage.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L71)

Ordered backend-neutral scene including paint-neutral semantic ownership groups.

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

[HtmlRenderPage.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderPage.cs#L74)

Independent snapshot of scoped font faces used by this page.

<!-- PowerForge markdown artifact sha256:06BCE4BA3A251C68EDDB171A4E6CDDDE59A472B5711AC4C44BFCCD2846B8666F -->
