Click or drag to resize

DocumentAddPage Method (PageSize, Margins)

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:  ExpertPdf.HtmlToPdf.PdfDocument
Assembly:  ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax
public PdfPage AddPage(
	PageSize pageSize,
	Margins pageMargins
)

Parameters

pageSize
Type: ExpertPdf.HtmlToPdf.PdfDocumentPageSize
The page size in points
pageMargins
Type: ExpertPdf.HtmlToPdf.PdfDocumentMargins
The page mergins in points

Return Value

Type: PdfPage
The newly created PDF page
See Also