GeneratePDFFromURL

Generate a PDF from a URL

Syntax

LOADLIB "mod::system/lib/printer.whlib";

RECORD FUNCTION GeneratePDFFromURL(STRING link, RECORD options)

Parameters

STRING link

URL to generate a PDF for

RECORD options

Options

INTEGER delay

How much milliseconds to wait after setting the url before taking a screenshot

filename

Output filename.

media

Media to use - 'screen' or 'print' (default)

pdfengine

PDF Engine to use. Defaults to 'chrome' and is currently the only available one

printbackground

Print backgrounds too? (defaults to true)

Return value

RECORD

Wrapped file containing the PDF