toPDFRange
Description
Exports several scheduler's views to a PDF document (can be used for printing)
toPDFRange: (from: Date, to: Date, view: string, path: string, color: string) => void
Parameters
from- (required) Date - the date to start export events fromto- (required) Date - the date to export events untilview- (required) string - the name of a view that the export should be applied topath- (required) string - the path to the php file which generates a PDF file (details)color- (required) string - the color map in use
Example
//exports pages of the 'week' view from the 1st January, 2027
//till the 1st February, 2027
scheduler.toPDFRange(new Date(2027,0,1), new Date(2027, 1,1),'week',
'generate.php', 'fullcolor');