exportToPDF

exports a Scheduler into the PDF format

void exportToPDF(object export);
exportobjectan object with export settings (see the details)

Example

scheduler.exportToPDF();
 
//or
scheduler.exportToPDF({
  name: "myscheduler.pdf"
});
 
scheduler.exportToPDF({
    name:"myscheduler.pdf",
    format:"A4",
    orientation:"portrait",
    zoom:1,
    header:"<h1>My company</h1>",
    footer:"<h4>Bottom line</h4>",
    server:"https://myapp.com/myexport/scheduler"
});

Details

This method is defined in the export extension, so you need to include it on the page:

<script src="https://export.dhtmlx.com/scheduler/api.js"></script>

Read the details in the Export to PDF article.

The exportToPDF() method takes as a parameter an object with a number of properties (all of the properties are optional):

See also
Back to top