PageLayout.Size Method (PdfPaperSize)

Sets the size 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
)
VB
Public Function Size ( 
	size As PdfPaperSize
) As PageLayout

Parameters

size
Type: BitMiracle.Docotic.Pdf.PdfPaperSize
The predefined size.

Return Value

Type: PageLayout
The updated page layout.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException Cannot set the size to Custom.

See Also