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
ContentWidth
Gets the available content width.
public float ContentWidth { get; }
Property Value
Margins
Gets the page margins in points.
public Thickness Margins { get; init; }
Property Value
PageHeight
Gets the page height in points.
public float PageHeight { get; init; }
Property Value
PageWidth
Gets the page width in points.
public float PageWidth { get; init; }
Property Value
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
sizePaperSizeThe paper size.
orientationPageOrientationThe page orientation.
Returns
- PageSettings
Page settings for the specified size.