Report
The Report object allows the user to programmatically generate PDF documents suitable for reporting with JavaScript. Use the writeText constructor to create a Report object; for example,
var rep = new Report();
The properties and methods can then be used to write and format a report.