[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.HtmlToPdfFormat

Class HtmlToPdfFormat

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Html.dll

Represents the formatting attributes for rendering HTML to GcPdfGraphics.

public class HtmlToPdfFormat
Inheritance
object
HtmlToPdfFormat
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

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

public HtmlToPdfFormat(bool fullPage)

Parameters

fullPage bool

Specifies whether to render the whole page.

Properties

DefaultBackgroundColor

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; }

Property Value

System.Drawing.Color

DisplayBackgroundGraphics

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

public bool DisplayBackgroundGraphics { get; set; }

Property Value

bool

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.

public bool FullPage { get; set; }

Property Value

bool

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.

public float? MaxPageHeight { get; set; }

Property Value

float?

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.

public float? MaxPageWidth { get; set; }

Property Value

float?

Scale

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

public float Scale { get; set; }

Property Value

float

WindowSize

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

public Size WindowSize { get; set; }

Property Value

System.Drawing.Size