printToPdf

fun printToPdf(filePath: String, callback: <Error class: unknown class>)

Renders the current page to a PDF at filePath (async).