Click or drag to resize

PdfPageCollection Add Method (SizeF, PdfMargins, PdfPageRotateAngle, PdfPageOrientation)

Creates a new page of the specified size and with the specified margins and adds it to the collection.

Namespace: Spire.Pdf.Widget
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public PdfPageBase Add(
	SizeF size,
	PdfMargins margins,
	PdfPageRotateAngle rotation,
	PdfPageOrientation orientation
)

Parameters

size
Type: System.Drawing SizeF
The size of the page.
margins
Type: Spire.Pdf.Graphics PdfMargins
The margins of the page.
rotation
Type: Spire.Pdf PdfPageRotateAngle
The rotation of the new page.
orientation
Type: Spire.Pdf PdfPageOrientation
The orientation of the new page.

Return Value

Type: PdfPageBase
The created page.
See Also