Creates a new PDF page with the specified size, margins and orientation and inserts it into the collection at the specified index

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public PdfPage InsertNewPage(
	int index,
	PdfPageSize pageSize,
	Margins pageMargins,
	PdfPageOrientation pageOrientation
)
Visual Basic
Public Function InsertNewPage ( 
	index As Integer,
	pageSize As PdfPageSize,
	pageMargins As Margins,
	pageOrientation As PdfPageOrientation
) As PdfPage
Visual C++
public:
PdfPage^ InsertNewPage(
	int index, 
	PdfPageSize^ pageSize, 
	Margins^ pageMargins, 
	PdfPageOrientation pageOrientation
)

Parameters

index
Type: System..::..Int32
The index where to insert the new page.
pageSize
Type: EvoPdf..::..PdfPageSize
The PDF page size in points.
pageMargins
Type: EvoPdf..::..Margins
The PDF page margins in points.
pageOrientation
Type: EvoPdf..::..PdfPageOrientation
The PDF page orientation.

Return Value

Type: PdfPage
The newly created PDF page.

See Also