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: 7.9.2.0 (7.9.2.1020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public PdfPageBase Add(
	SizeF size,
	PdfMargins margins
)
Public Function Add ( 
	size As SizeF,
	margins As PdfMargins
) As PdfPageBase
public:
PdfPageBase^ Add(
	SizeF size, 
	PdfMargins^ margins
)
member Add : 
        size : SizeF * 
        margins : PdfMargins -> PdfPageBase 

Parameters

size
SizeF
The size of the new page.
margins
PdfMargins
The margins of the new page.

Return Value

PdfPageBase
The created page.

See Also