HtmlToPdfConverterPageWidthFromBrowserWindow Method

The page width follows the browser window width and the HTML is rendered without scaling, one CSS pixel being 0.75 points

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.75.0
C#
public void PageWidthFromBrowserWindow(
	int windowWidth = 1024,
	bool singlePage = false
)

Parameters

windowWidth  Int32  (Optional)
The browser window width in pixels; the page width follows it
singlePage  Boolean  (Optional)
Render the whole HTML on one page, as tall as the content

Remarks

The browser window width and the zoom are set to fixed values. Margins set after the call are added to the page width, and the page size and the orientation give the page height. 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