exports several scheduler's views to a PDF document (can be used for printing)
from | Date | the date to start export events from |
to | Date | the date to export events until |
view | string | the name of a view that the export should be applied to |
path | string | the path to the php file which generates a PDF file (details) |
color | string | the color map in use |
//exports pages of the 'week' view from the 1st January, 2012
//till the 1st February, 2012
scheduler.toPDFRange(new Date(2012,0,1), new Date(2012, 1,1),'week',
'generate.php', 'fullcolor');
The method requires the pdf plugin to be enabled.
The color parameter of the method can take only one of the values from the predefined set: