Sets the size-related properties of the page using the provided width and height in
points.
Namespace:
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly:
BitMiracle.Docotic.Pdf.HtmlToPdf (in BitMiracle.Docotic.Pdf.HtmlToPdf.dll)
Syntax
C#
public void SetSizePoints(
int width,
int height,
bool isLandscape = false
)
VB
Public Sub SetSizePoints (
width As Integer,
height As Integer,
Optional isLandscape As Boolean = false
)
Parameters
- width
- Type: System.Int32
The width of the page in points. - height
- Type: System.Int32
The height of the page in points. - isLandscape (Optional)
- Type: System.Boolean
The value indicating whether the page orientation should be landscape.
Remarks
One point is 1/72 of inch.
Both width and height must be greater than zero.
See Also