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: 3.48.0.0 (3.48.0.0)
Syntax
public PdfPageSize(
	double width,
	double height
)

Parameters

width
Type: SystemDouble
The page width in points.
height
Type: SystemDouble
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