GeneratePDFFromURL (open)
Generate a PDF from a URL
Syntax
LOADLIB "mod::system/lib/printer.whlib";
RECORD FUNCTION GeneratePDFFromURL(STRING link, RECORD options)Parameters
STRING linkURL to generate a PDF for
RECORD optionsOptions
INTEGER delayHow much milliseconds to wait after setting the url before taking a screenshot
filenameOutput filename.
STRING mediaMedia to use - 'screen' or 'print' (default)
pdfenginePDF Engine to use. Defaults to 'chrome' and is currently the only available one
printbackgroundPrint backgrounds too? (defaults to true)
INTEGER timeoutTimeout (in milliseconds) for PDF generation. Defaults to 30 seconds
Return value
RECORDWrapped file containing the PDF