Ajout d'une autre façon pour transformer en slides pdf
This commit is contained in:
parent
9e9916896b
commit
08be3abdf0
|
@ -85,6 +85,29 @@ $ docker cp `docker ps -lq`:slides/slides.pdf .
|
||||||
$ docker rm `docker ps -lq`
|
$ docker rm `docker ps -lq`
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Alternative en utilisant Chromium
|
||||||
|
|
||||||
|
Si vous avez Chromium sur votre machine, assurez-vous que le fichier /css/print/pdf.css soit chargé (il est chargé par défaut dans l'index.html). Si vous utilisez un autre fichier html, vous pouvez ajouter la section suivante dans le HEAD :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
<script>
|
||||||
|
var link = document.createElement( 'link' );
|
||||||
|
link.rel = 'stylesheet';
|
||||||
|
link.type = 'text/css';
|
||||||
|
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
|
||||||
|
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
||||||
|
</script>
|
||||||
|
~~~
|
||||||
|
|
||||||
|
* Depuis Chromium, ouvrez votre fichier html et ajoutez à la fin `?print-pdf`. Exemple : revealjs.com?print-pdf.
|
||||||
|
* Vous pouvez ajouter l'option `&showNotes=true` pour conserver les speaker notes
|
||||||
|
* Ouvrez la fenêtre d'impression en faisant `control+p`
|
||||||
|
* Assurez-vous que la destination soit « Save as PDF »
|
||||||
|
* Le mode doit être « Paysage » ou « Landscape »
|
||||||
|
* Les marges doivent être à « None »
|
||||||
|
* Activez l'option « Background graphics »
|
||||||
|
* Sauvegardez
|
||||||
|
|
||||||
### Alternative en utilisant NodeJS
|
### 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é).
|
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é).
|
||||||
|
|
Loading…
Reference in a new issue