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

ApplyBGColorToPaper Property

Determines whether the HTML BODY's background color is applied to the entire PDF page. The default value is False.

Type

Boolean

Remarks

A value of True means that easyPDF applies the HTML BODY's background color to the paper (including the margin area). If false, the paper's color remains white.

Example Usage

'VB Sample Code

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

Set oPrintJob = oPrinter.IEExtendedPrintJob

oPrintJob.PageWidth = 8.5
oPrintJob.PageHeight = 11.0
oPrintJob.ApplyBGColorToPaper = True

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


//C# Sample Code

PrinterClass printerObj = new PrinterClass();

IEExtendedPrintJob printJobObj = printerObj.IEExtendedPrintJob;

printJobObj.PageWidth = 8.5;
printJobObj.PageHeight = 11.0;
printJobObj.ApplyBGColorToPaper = false;

printJobObj.PrintOut("http://www.pdfonline.com/", @"C:\test\output.pdf");