Table of Contents

Struct PageSize

Namespace
NetPdf
Assembly
NetPdf.dll

A page size expressed in CSS pixels. NetPdf's canonical layout unit is the CSS pixel (1 px = 0.75 pt at 96 DPI); conversion to PDF points happens at emission only.

public readonly record struct PageSize : IEquatable<PageSize>
Implements
Inherited Members

Constructors

PageSize(double, double)

A page size expressed in CSS pixels. NetPdf's canonical layout unit is the CSS pixel (1 px = 0.75 pt at 96 DPI); conversion to PDF points happens at emission only.

public PageSize(double WidthPx, double HeightPx)

Parameters

WidthPx double
HeightPx double

Properties

A0

public static PageSize A0 { get; }

Property Value

PageSize

A1

public static PageSize A1 { get; }

Property Value

PageSize

A2

public static PageSize A2 { get; }

Property Value

PageSize

A3

public static PageSize A3 { get; }

Property Value

PageSize

A4

public static PageSize A4 { get; }

Property Value

PageSize

A5

public static PageSize A5 { get; }

Property Value

PageSize

A6

public static PageSize A6 { get; }

Property Value

PageSize

B4

public static PageSize B4 { get; }

Property Value

PageSize

B5

public static PageSize B5 { get; }

Property Value

PageSize

Executive

public static PageSize Executive { get; }

Property Value

PageSize

HeightPx

public double HeightPx { get; init; }

Property Value

double

IsLandscape

True when width > height.

public bool IsLandscape { get; }

Property Value

bool

Landscape

The same page rotated 90 degrees.

public PageSize Landscape { get; }

Property Value

PageSize
public static PageSize Legal { get; }

Property Value

PageSize

Letter

public static PageSize Letter { get; }

Property Value

PageSize

Tabloid

public static PageSize Tabloid { get; }

Property Value

PageSize

WidthPx

public double WidthPx { get; init; }

Property Value

double