CefPrintHandler

interface CefPrintHandler

Implement this interface to handle printing on Linux. The methods of this class will be called on the browser process UI thread.

Inheritors

Functions

Link copied to clipboard
abstract fun getPdfPaperSize(browser: CefBrowser, deviceUnitsPerInch: Int): Dimension
Called to retrieve the page size when printToPDF is requested for a browser.
Link copied to clipboard
abstract fun onPrintDialog(browser: CefBrowser, hasSelection: Boolean, callback: CefPrintDialogCallback): Boolean
Called to show the print dialog.
Link copied to clipboard
abstract fun onPrintJob(browser: CefBrowser, documentName: String, pdfFilePath: String, callback: CefPrintJobCallback): Boolean
Called to send the print job to the printer.
Link copied to clipboard
abstract fun onPrintReset(browser: CefBrowser)
Called to reset client state related to printing.
Link copied to clipboard
abstract fun onPrintSettings(browser: CefBrowser, settings: CefPrintSettings, getDefaults: Boolean)
Called to get print settings.
Link copied to clipboard
abstract fun onPrintStart(browser: CefBrowser)
Called when printing has started.