Method AddPage

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

AddPage(PageSize?, PageOrientation?)

Appends a new, empty page.

public PdfPage AddPage(PageSize? size = null, PageOrientation? orientation = null)

Parameters

size PageSize

The page size; defaults to DefaultPageSize.

orientation PageOrientation?

If given, swaps width and height where needed so the page is portrait or landscape; otherwise the size is used as-is. Also applies to the default size, so AddPage(orientation: PageOrientation.Landscape) adds a landscape page of DefaultPageSize.

Returns

PdfPage

The new page; draw on it through Content.