HtmlToPdfSinglePageOfWidth 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: HiQPdf.NextAssembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.84.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 has exactly the given width; margins set after the call narrow the content, as with LayoutAtPageWidth.
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