printToPDF
Print the current browser contents to a PDF.
Parameters
path
The path of the file to write to (will be overwritten if it already exists). Cannot be null.
settings
The pdf print settings to use. If null then defaults will be used.
callback
Called when the pdf print job has completed.