HowtoReveal.js : ajout procédures alternatives pour export PDF

This commit is contained in:
Romain Dessort 2018-05-09 16:20:11 -04:00
parent f8d4bd160b
commit 2cc890d3ad

View file

@ -72,3 +72,19 @@ $ ~/GIT/$ git clone https://github.com/astefanutti/decktape.git
$ ~/GIT/decktape$ curl -L https://github.com/astefanutti/decktape/releases/download/v1.0.0/phantomjs-linux-x86-64 -o phantomjs; chmod +x phantomjs
$ ~/GIT/decktape$ ./phantomjs decktape.js file:///tmp/foo.html foo.pdf
~~~
Note : cette méthode ne marche plus avec les dernières version de phantomjs et/ou decktape.
### Alternative en utilisant Docker
Si vous avez Docker sur votre machine :
~~~
$ docker run -t -v ~:/home/user astefanutti/decktape <fichier HTML> slides.pdf
$ docker cp `docker ps -lq`:slides/slides.pdf .
$ docker rm `docker ps -lq`
~~~
### Alternative en utilisant NodeJS
Débrouillez vous pour obtenir un nodejs et npm suffisamment récent puis suivre la procédure officielle : https://github.com/astefanutti/decktape#install (non testé).