Sets the size-related properties of the page using the provided width and height in
inches.
Namespace:
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly:
BitMiracle.Docotic.Pdf.HtmlToPdf (in BitMiracle.Docotic.Pdf.HtmlToPdf.dll)
Syntax
C#
public void SetSizeInches(
double width,
double height,
bool isLandscape = false
)
VB
Public Sub SetSizeInches (
width As Double,
height As Double,
Optional isLandscape As Boolean = false
)
Parameters
- width
- Type: System.Double
The width of the page in inches. - height
- Type: System.Double
The height of the page in inches. - isLandscape (Optional)
- Type: System.Boolean
The value indicating whether the page orientation should be landscape.
Remarks
Both width and height must be greater than zero.
See Also