Multi-page export to PDF

The library provides a special method that allows you to export into a PDF document several view pages at once.

scheduler.toPDFRange(from, to, view, path, scheme);
  • from - (Date object) the date to start export events from
  • to - (Date object) the date to end export events at
  • view - (string) the view to apply export to
  • path - (url) the path to the php file which generates a PDF file. See details in chapter 'Export to PDF. Configuring service'
  • color - ('color', 'gray', 'bw', 'custom', 'fullcolor') specifies the colormap in use
  1. 'color' - full-color printing, default value
  2. 'gray' - prints in shades of black and white
  3. 'bw' - uses only black and white colors
  4. 'custom' - can be used to enable a custom colormap ( requires php coding, see details in chapter 'Export to PDF. Configuring service' )
  5. 'fullcolor' - actual background and text colors that are used while exporting

For example, to export pages of the 'week' view from 1st January, 2012 till 1st February, 2012, you may call the method as in:

scheduler.toPDFRange(
    new Date(2012,0,1), 
    new Date(2012, 1,1),
    'week', 
    'generate.php', 
    'fullcolor'
);
Back to top