[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.HtmlToPdfFormat

HtmlToPdfFormat Class

Represents the formatting attributes for rendering HTML to GcPdfGraphics.

Inheritance
HtmlToPdfFormat
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Html.dll
Syntax
public class HtmlToPdfFormat
Public Class HtmlToPdfFormat

Constructors

Name Description
HtmlToPdfFormat(bool)

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).

Properties

Name Description
DefaultBackgroundColor

Gets or sets the background color to be used if the HTML page doesn't specify one. Defaults to White color.

DisplayBackgroundGraphics

Gets or sets a value indicating whether the background graphics should be rendered. Defaults to true.

FullPage

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.

MaxPageHeight

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.

MaxPageWidth

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.

Scale

Gets or sets the scale factor, between 0.1 and 2.0. Defaults to 1.0.

WindowSize

Gets or sets the virtual window size, in pixels. Defaults to 800 x 600.