From 2cc890d3ade55964bc0b404d7ae07a5f1927fd38 Mon Sep 17 00:00:00 2001 From: Romain Dessort Date: Wed, 9 May 2018 16:20:11 -0400 Subject: [PATCH] =?UTF-8?q?HowtoReveal.js=20:=20ajout=20proc=C3=A9dures=20?= =?UTF-8?q?alternatives=20pour=20export=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoReveal.js.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/HowtoReveal.js.md b/HowtoReveal.js.md index de1d8130..88fd7ede 100644 --- a/HowtoReveal.js.md +++ b/HowtoReveal.js.md @@ -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 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é).