Click or drag to resize
Pdf Library for .NET

PdfDocumentInsertPage Method (Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation)

Creates a new pdf page with the specified size, margins and orientation and inserts it into the pdf document pages collection at the specified index.

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
Syntax
public PdfPage InsertPage(
	int index,
	PdfCustomPageSize pageSize,
	PdfMargins pageMargins,
	PdfPageOrientation pageOrientation
)

Parameters

index
Type: SystemInt32
The index where the new pdf page will be inserted.
pageSize
Type: SelectPdfPdfCustomPageSize
The pdf page size.
pageMargins
Type: SelectPdfPdfMargins
The pdf page margins.
pageOrientation
Type: SelectPdfPdfPageOrientation
The pdf page orientation.

Return Value

Type: PdfPage
The newly created pdf page.
See Also