Zenika-Training / zenika-formation-framework

Tools to build and present our training material
8 stars 25 forks source link

PDF generation with Chrome #192

Closed hgwood closed 7 years ago

hgwood commented 7 years ago

New script to run Chrome and drive it to generate a PDF of the slides. grunt pdf now uses this script.

It might require a minimum version of Chrome to do this, I'm not sure.

Chrome is run headless if available, otherwise a graphical window appears. Chrome supports headless mode from version 59 on Linux and OSX, and from version 60 on Windows. Chrome Canary is used if available.

The script is not compatible with the current Docker image because the image does not contain Chrome.