HtmlToPdfConverterSinglePageOfWidth Method

Renders the HTML on a single page of the given width, as tall as the content. For receipts and tickets: 80 mm paper is 227 points, 58 mm paper is 164 points

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.75.0
C#
public void SinglePageOfWidth(
	int widthPt = 227,
	int marginPt = 14
)

Parameters

widthPt  Int32  (Optional)
The page width in points
marginPt  Int32  (Optional)
The margin on each side in points

Remarks

The page width is the browser window width set by this method plus the margins, so give the width and the margins as arguments: margins set after the call change the page width. The layouts for the usual cases are described in the "HTML to PDF Page Setup and Scaling" topic: HTML to PDF Page Setup and Scaling

See Also