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
PdfPaperSizeThe 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
PdfPaperSizeThe predefined size.
orientation
PdfPaperOrientationThe 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
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
PdfSizeThe 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.