Click or drag to resize
Pdf Library for .NET

PdfDocumentInsertPage(Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation) Method

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: 26.2
Syntax
public PdfPage InsertPage(
	int index,
	PdfCustomPageSize pageSize,
	PdfMargins pageMargins,
	PdfPageOrientation pageOrientation
)

Parameters

index  Int32
The index where the new pdf page will be inserted.
pageSize  PdfCustomPageSize
The pdf page size.
pageMargins  PdfMargins
The pdf page margins.
pageOrientation  PdfPageOrientation
The pdf page orientation.

Return Value

PdfPage
The newly created pdf page.
See Also