BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

PrintBGColor Property

Gets/Sets the flag that indicates whether to render background colors when converting HTML to PDF. The default value is True.

bool PrintBGColor { get; set; }

Property PrintBGColor As Boolean

def getPrintBGColor(self)
def setPrintBGColor(self, value)
boolean getPrintBGColor() throws PrinterException
void setPrintBGColor(boolean value) throws PrinterException
function getPrintBGColor() 
function setPrintBGColor($value) 
BclPrnResult GetPrintBGColor(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetPrintBGColor(BclPrinter* pPrinter, BclBool newVal);
Property PrintBGColor As Boolean

bepprint +WebKit -renderBackground [on|off]

Type

Boolean

Remarks

N/A.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oPrintJob = oPrinter.HTMLPrintJob

oPrintJob.PrintBGColor = True

oPrintJob.PrintOut "C:\temp\input.htm", "C:\temp\output.pdf"