Table of Contents

Method Size

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Size(PdfPaperSize)

Sets the size of the page.

public PageLayout Size(PdfPaperSize size)

Parameters

size PdfPaperSize

The predefined size.

Returns

PageLayout

The updated page layout.

Remarks

Check out the Size section of the How to layout PDF pages article for more information about setting page size.

Exceptions

ArgumentOutOfRangeException

Cannot set the size to Custom.

Size(PdfPaperSize, PdfPaperOrientation)

Sets the size and the orientation of the page .

public PageLayout Size(PdfPaperSize size, PdfPaperOrientation orientation)

Parameters

size PdfPaperSize

The predefined size.

orientation PdfPaperOrientation

The orientation of the page.

Returns

PageLayout

The updated page layout.

Remarks

Check out the Size section of the How to layout PDF pages article for more information about setting page size.

Exceptions

ArgumentOutOfRangeException

Cannot set the size to Custom.

Size(double, double)

Sets the size of the page.

public PageLayout Size(double width, double height)

Parameters

width double

The width in points.

height double

The height in points.

Returns

PageLayout

The updated page layout.

Remarks

Check out the Size section of the How to layout PDF pages article for more information about setting page size.

Size(PdfSize)

Sets the size of the page.

public PageLayout Size(PdfSize size)

Parameters

size PdfSize

The page size in points.

Returns

PageLayout

The updated page layout.

Remarks

Check out the Size section of the How to layout PDF pages article for more information about setting page size.