PdfPageOptions.KeepBackground Property

Gets or sets the value indicating whether the conversion should keep the background color and/or graphics.

Namespace:  BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly:  BitMiracle.Docotic.Pdf.HtmlToPdf (in BitMiracle.Docotic.Pdf.HtmlToPdf.dll)

Syntax

C#
public bool KeepBackground { get; set; }
VB
Public Property KeepBackground As Boolean
	Get
	Set

Property Value

Type: Boolean
true if the conversion should keep the background color and/or graphics; otherwise, false.

Remarks

Default value: true.

If the value is false, then the output pages will either have an opaque white background or won't have the background at all, depending on the value of the TransparentBackground property.

See Also