Click or drag to resize
PageCollectionInsertNewPage Method
Creates a new PDF page with the specified size, margins and orientation and inserts it into the collection at the specified index

Namespace: ExpertPdf.HtmlToPdf.PdfDocument
Assembly: ExpertPdf.HtmlToPdf (in ExpertPdf.HtmlToPdf.dll) Version: 11.0.0
Syntax
public PdfPage InsertNewPage(
	int index,
	PageSize pageSize,
	Margins pageMargins,
	PDFPageOrientation pageOrientation
)

Parameters

index
Type: SystemInt32
The index where to insert the new page.
pageSize
Type: ExpertPdf.HtmlToPdf.PdfDocumentPageSize
The PDF page size in points.
pageMargins
Type: ExpertPdf.HtmlToPdf.PdfDocumentMargins
The PDF page margins in points.
pageOrientation
Type: ExpertPdf.HtmlToPdfPDFPageOrientation
The PDF page orientation.

Return Value

Type: PdfPage
The newly created PDF page.
See Also