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.
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.
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.
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.