Table of Contents

Class PageSettings

Namespace
SimpleSign.HtmlToPdf.Layout
Assembly
SimpleSign.HtmlToPdf.dll

Page dimensions and margins for PDF layout.

public sealed class PageSettings
Inheritance
PageSettings
Inherited Members

Properties

ContentHeight

Gets the available content height.

public float ContentHeight { get; }

Property Value

float

ContentWidth

Gets the available content width.

public float ContentWidth { get; }

Property Value

float

Margins

Gets the page margins in points.

public Thickness Margins { get; init; }

Property Value

Thickness

PageHeight

Gets the page height in points.

public float PageHeight { get; init; }

Property Value

float

PageWidth

Gets the page width in points.

public float PageWidth { get; init; }

Property Value

float

Methods

FromPaperSize(PaperSize, PageOrientation)

Creates page settings for a standard paper size with 1-inch margins.

public static PageSettings FromPaperSize(PaperSize size, PageOrientation orientation = PageOrientation.Portrait)

Parameters

size PaperSize

The paper size.

orientation PageOrientation

The page orientation.

Returns

PageSettings

Page settings for the specified size.