PageLayout.Size Method (PdfPaperSize, PdfPaperOrientation)

Sets the size and the orientation of the page .

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public PageLayout Size(
	PdfPaperSize size,
	PdfPaperOrientation orientation
)
VB
Public Function Size ( 
	size As PdfPaperSize,
	orientation As PdfPaperOrientation
) As PageLayout

Parameters

size
Type: BitMiracle.Docotic.Pdf.PdfPaperSize
The predefined size.
orientation
Type: BitMiracle.Docotic.Pdf.PdfPaperOrientation
The orientation of the page.

Return Value

Type: PageLayout
The updated page layout.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException Cannot set the size to Custom.

See Also