NOTE: For this example to work you have to run it in a web server context. This example enables you to generate a PDF file out of a Gantt panel. It requires having PhantomJS 1.6 and ImageMagick on your server as well as permissions to run them both and create/remove files.

The complete instruction of setting up this example is available in the README.txt file. Please note that the buffered option of the view (and data store) is not compatible with the export plugin.

Note that the js for the example code is not minified so it is readable. See export.js. You can also take a look into PhantomJs renderer code render.js.