Runner.PDF.download generates a PDF file and and prompts the file to download. It also determines the name of the file.
This method can be used in all JavaScript events.
Syntax
Runner.PDF.download ( {}, 'file.pdf', pageObj );
Arguments
params
PDF parameters. Can be empty. Use {} for default settings.
filename
the name of the file, for example, file.pdf.
pageObj
RunnerPage object. Available as a variable in all JavaScript events.
Return value
No return value
Example
Runner.PDF.download( {}, 'file.pdf', pageObj );
return false;
See also:
•Example: Creating and saving a PDF file to disk
•JavaScript API: RunnerPage object