Table of Contents

Property TransparentBackground

Namespace
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly
BitMiracle.Docotic.Pdf.HtmlToPdf.dll

TransparentBackground

Gets or sets the value indicating whether the default background should be transparent.

[Obsolete("The library uses transparent background by default. If you need an opaque background then you can use CSS background or add PdfXObject with DrawOnBackground = true after the HTML to PDF conversion.")]
public bool TransparentBackground { get; set; }

Property Value

bool

true if the default background shoud be transparent; otherwise, false.

Remarks

Default value: false.

This property only affects the default background color. Any color specified for html or body tags of your HTML code will override the setting.