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
sizePageSizeThe page size; defaults to DefaultPageSize.
orientationPageOrientation?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.