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
Properties
A0
public static PageSize A0 { get; }
Property Value
A1
public static PageSize A1 { get; }
Property Value
A2
public static PageSize A2 { get; }
Property Value
A3
public static PageSize A3 { get; }
Property Value
A4
public static PageSize A4 { get; }
Property Value
A5
public static PageSize A5 { get; }
Property Value
A6
public static PageSize A6 { get; }
Property Value
B4
public static PageSize B4 { get; }
Property Value
B5
public static PageSize B5 { get; }
Property Value
Executive
public static PageSize Executive { get; }
Property Value
HeightPx
public double HeightPx { get; init; }
Property Value
IsLandscape
True when width > height.
public bool IsLandscape { get; }
Property Value
Landscape
The same page rotated 90 degrees.
public PageSize Landscape { get; }
Property Value
Legal
public static PageSize Legal { get; }
Property Value
Letter
public static PageSize Letter { get; }
Property Value
Tabloid
public static PageSize Tabloid { get; }
Property Value
WidthPx
public double WidthPx { get; init; }