Click or drag to resize
Pdf Library for .NET

PdfPageCollectionAdd(PdfCustomPageSize, PdfMargins) Method

Creates a new pdf page with the specified size and margins and adds it to the pdf document pages collection.

Namespace: SelectPdf
Assembly: Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 26.2
Syntax
public PdfPage Add(
	PdfCustomPageSize pageSize,
	PdfMargins pageMargins
)

Parameters

pageSize  PdfCustomPageSize
The pdf page size.
pageMargins  PdfMargins
The pdf page margins.

Return Value

PdfPage
The newly created pdf page.
Remarks
If there is a previous page in the pages collection, the orientation is inherited from that page, otherwise a first page with the default Portrait orientation is created.
See Also