onPrintJob

open fun onPrintJob(browser: CefBrowser, documentName: String, pdfFilePath: String, callback: CefPrintJobCallback): Boolean

Called to send the print job to the printer.

Return

True if the job will proceed or false to cancel the printing immediately.

Parameters

browser

The corresponding browser.

documentName

Name of the document that is printing.

pdfFilePath

Path to the PDF file that contains the document contents.

callback

Callback to execute after the print job has completed.