[]
Represents the formatting attributes for rendering HTML to GcPdfGraphics.
public class HtmlToPdfFormat
Initializes a new instance of HtmlToPdfFormat.
If fullPage
is true, the resulting size will be calculated automatically
to include all page content.
If fullPage
is false, the maximum resulting size will be determined
by MaxPageWidth and MaxPageHeight (possibly clipping some content).
public HtmlToPdfFormat(bool fullPage)
fullPage
boolSpecifies whether to render the whole page.
Gets or sets the background color to be used if the HTML page doesn't specify one. Defaults to White color.
public Color DefaultBackgroundColor { get; set; }
Gets or sets a value indicating whether the background graphics should be rendered. Defaults to true.
public bool DisplayBackgroundGraphics { get; set; }
Gets or sets a value indicating whether the full HTML page should be rendered.
Note that if this property is true, MaxPageWidth and MaxPageHeight are ignored.
public bool FullPage { get; set; }
Gets or sets the maximum page height, in inches. If unspecified, 200 inches is used.
Note that this property is ignored if FullPage is true.
public float? MaxPageHeight { get; set; }
Gets or sets the maximum page width, in inches. If unspecified, 200 inches is used.
Note that this property is ignored if FullPage is true.
public float? MaxPageWidth { get; set; }
Gets or sets the scale factor, between 0.1 and 2.0. Defaults to 1.0.
public float Scale { get; set; }
Gets or sets the virtual window size, in pixels. Defaults to 800 x 600.
public Size WindowSize { get; set; }