Creates a new PDF page and adds it to the collection. If there is a previous page in the
collection, the page orientation is inherited from the that page otherwise a first page with
the specified size and Portrait orientation is created.
Namespace: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public PdfPage AddNewPage( PdfPageSize pageSize, Margins pageMargins ) |
| Visual Basic |
|---|
Public Function AddNewPage ( pageSize As PdfPageSize, pageMargins As Margins ) As PdfPage |
| Visual C++ |
|---|
public: PdfPage^ AddNewPage( PdfPageSize^ pageSize, Margins^ pageMargins ) |
Parameters
- pageSize
- Type: EvoPdf..::..PdfPageSize
The page size in points.
- pageMargins
- Type: EvoPdf..::..Margins
The page mergins in points.
Return Value
Type: PdfPageThe newly created PDF page.