printToPdf
Prints the page to a PDF file, streamed in chunks to avoid holding the whole document in memory.
Parameters
params
Page.printToPDF parameters, e.g. printBackground or paperHeight. The transfer mode is managed internally and must not be specified
out
output PDF file to be written