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
Namespace: EvoPdf.NextAssembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.75.0
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
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