Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlRenderPage

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
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

Methods

CreateDrawing 2 overloads
public OfficeDrawing CreateDrawing() #

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

Returns

OfficeDrawing
public OfficeDrawing CreateDrawing(CancellationToken cancellationToken) #

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

Parameters

cancellationToken System.Threading.CancellationToken required

Returns

OfficeDrawing

Properties

public int PageNumber { get; } #

One-based page number.

public double Width { get; } #

Page width in CSS pixels.

public double Height { get; } #

Page height in CSS pixels.

public HtmlRenderMargins Margins { get; } #

Resolved page margins in CSS pixels.

public string? PageName { get; } #

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

public HtmlRenderPrintProductionSettings? PrintProduction { get; } #

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

public IReadOnlyList<HtmlRenderVisual> Visuals { get; } #

Ordered backend-neutral visuals on this page.

public IReadOnlyList<HtmlRenderVisual> Scene { get; } #

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

public OfficeFontFaceCollection Fonts { get; } #

Independent snapshot of scoped font faces used by this page.