Click or drag to resize

HtmlToPdfElementFitWideContent Property

Gets or sets whether content wider than the HTML viewer is kept by laying the page out at the width the content needs and scaling it down to fit.

Namespace: ExpertPdf.Anywhere.PdfDocument
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public bool FitWideContent { get; set; }

Property Value

Boolean
Remarks
The default value is False.

With False, content wider than the HTML viewer width is cut at the right edge, as a browser cuts it when it prints. With True, a page that lays out wider than the viewer is laid out again at its own width, at most four times the viewer width, and the whole page is scaled down to fit, so a wide table or a long preformatted line appears complete, smaller.

An element the page keeps off screen (a menu at left: 100%, a carousel) widens the layout the same way, so such a page comes out smaller than expected; the four-fold cap bounds it. Ignored when the viewer is clipped to a fixed height, which converts the page at exactly the given size.

See Also