Click or drag to resize
Pdf Library for .NET

PdfPageCollectionInsert(Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation) Method

Inserts a new page at the specified index with the given size, margins, and orientation.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfPage Insert(
	int index,
	PdfCustomPageSize pageSize,
	PdfMargins pageMargins,
	PdfPageOrientation pageOrientation
)

Parameters

index  Int32
The zero-based index at which to insert the new page.
pageSize  PdfCustomPageSize
The size of the new page, in points.
pageMargins  PdfMargins
The margins to apply to the new page.
pageOrientation  PdfPageOrientation
The orientation of the new page.

Return Value

PdfPage
The newly created and inserted PdfPage.
See Also