exports a Scheduler into the PNG format
export | object | an object with export settings (see the details) |
scheduler.exportToPNG();
//or
scheduler.exportToPNG({
name:"my_beautiful_scheduler.png"
});
scheduler.exportToPNG({
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 PNG article.
The exportToPNG() method takes as a parameter an object with a number of properties (all the properties are optional):
name | (string) the name of the output file |
format | ('A0', 'A1', 'A2', 'A3', 'A4', 'A5') the format of the output PNG image/td> |
orientation | ('portrait', 'landscape') sets the orientation of the output PNG image |
zoom | (number) sets the zoom coefficient of the output PNG image |
header | (string) specifies the header that will be added to the output PNG image. Note, you can use any HTML here |
footer | (string) specifies the footer that will be added to the output PNG 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 |