exports a Scheduler into the PDF format
export | object | an object with export settings (see the details) |
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"
});
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):
name | (string) the name of the output file |
format | ('A0', 'A1', 'A2', 'A3', 'A4', 'A5') the format of the output PDF image |
orientation | ('portrait', 'landscape') sets the orientation of the output PDF image |
zoom | (number) sets the zoom coefficient of the output PDF image |
header | (string) specifies the header that will be added to the output PDF image. Note, you can use any HTML here |
footer | (string) specifies the footer that will be added to the output PDF image. Note, you can use any HTML here |
server | (string) sets the API endpoint for the request. Can be used with the local install of the export service. The default value is https://export.dhtmlx.com/scheduler |
additional_settings | (object) an object with additional settings. The object can contain the following attributes:
|