Click or drag to resize

PdfPageSize Constructor

Initializes a new instance of the PdfPageSize class with given width and height (in points).

Namespace:  RadPdf.Data.Document.Pages
Assembly:  RadPdf (in RadPdf.dll) Version: 4.4.0.0 (4.4.0.0)
Syntax
public PdfPageSize(
	double width,
	double height
)

Parameters

width
Type: System.Double
The page width in points.
height
Type: System.Double
The page height in points.
Remarks
PointsPerInch and PointsPerMm can be used to easily define a custom page size in inches or mm.
Examples
In this example, a new page size, 4in by 4in, is created.
C#
PdfPageSize size = new PdfPageSize(4.0 * PdfPageSize.PointsPerInch, 4.0 * PdfPageSize.PointsPerInch);
See Also
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!