PdfDocumentAddPage Method

Adds a new page to the document. The page has the given size and orientation, which become the current ones for the pages added next, or the current page size when no size is given

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
C#
public int AddPage(
	PdfPageSize pageSize = null,
	PdfPageOrientation pageOrientation = PdfPageOrientation.Portrait
)

Parameters

pageSize  PdfPageSize  (Optional)
The size of the page, or null for the current page size
pageOrientation  PdfPageOrientation  (Optional)
The orientation of the page, used when a size is given

Return Value

Int32
The 1-based number of the added page

See Also