getPdfPaperSize

abstract fun getPdfPaperSize(browser: CefBrowser, deviceUnitsPerInch: Int): Dimension

Called to retrieve the page size when printToPDF is requested for a browser.

Return

The page size in microns.

Parameters

browser

The corresponding browser.

deviceUnitsPerInch

The DPI of the print. Use this to calculate the page size to use.