PdfDocumentAddPageAtIndex(Int32, PdfPageSize, PdfDocumentMargins, PdfPageOrientation) Method

Adds a new page with the given size, margins and orientation at the given index. The first page index is 0

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public PdfPage AddPageAtIndex(
	int index,
	PdfPageSize size,
	PdfDocumentMargins margins,
	PdfPageOrientation orientation
)

Parameters

index  Int32
The index of the new page
size  PdfPageSize
The page size in points
margins  PdfDocumentMargins
The page margins
orientation  PdfPageOrientation
The page orientation

Return Value

PdfPage
The newly created PDF page

See Also