Create a new page with given pagesize, and format the size to landscape or portrait.

Namespace: TallComponents.PDF
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public Page(
	PageSize pageSize,
	bool landscape
)
Visual Basic
Public Sub New ( _
	pageSize As PageSize, _
	landscape As Boolean _
)

Parameters

pageSize
Type: TallComponents.PDF..::..PageSize
The specified page size
landscape
Type: System..::..Boolean
force the page to be landscape, otherwise force to be portrait

Remarks

The page orientation will be forced to landscape or portrait. If you specify landscape to true and the given page size is already in landscape (eg Ledger, or custom) the page size will not be changed. This also the case if the page size is already portrait and the landscape boolean is set to false.

See Also