Table of Contents
AutoFitX Property

Specifies the horizontal auto fit mode.

Syntax
 public HtmlToPdfAutoFitMode AutoFitX { get; set; }
Remarks

The HTML to PDF converter considers both AutoFitX and AutoFitY to decide a single final scale factor, which applies horizontally and vertically. For example, if both AutoFitX and AutoFitY are set to ScaleToFit and,

  1. The HTML page is twice as wide as the PDF output area;
  2. The HTML page height is only half of the PDF output area;

Then the final scale factor will be 0.5 so that the whole HTML page is shrunk to half of its original size by 50% on both horizontally and vertically.

This property is automatically reset to ShrinkToFit after every conversion.

This property is ignored in when Mode is set to Integrated.

See Also