Table of Contents

Method SetSizePoints

Namespace
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly
BitMiracle.Docotic.Pdf.HtmlToPdf.dll

SetSizePoints(int, int, bool)

Sets the size-related properties of the page using the provided width and height in points.

public void SetSizePoints(int width, int height, bool isLandscape = false)

Parameters

width int

The width of the page in points.

height int

The height of the page in points.

isLandscape bool

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.