I have activated slideNumber for my reveal.js based slides and they show up nicely on the HTML view.
Now I would like to also show them on the PDF printout that I generate with Chrome as suggested on the documentation.
It seems that its all one large page so even header and footer display only once for all slides rather than on each slide. Is there a way to print reveal.js slides that works nicely for these sort of things?
well, one ugly hack will be to:
1. take sequential screenshots.
2. embed each shot in a pdf file.
(or 3. embed it in a ppt and convert ppt into pdf)
Other than that, I couldn't find anything that'd convert it to a good-looking pdf with ease.
An Elegent Hack
Although I still couldn't find a precise solution, I do have, as the title suggests, an elegent hack.
A firefox plugin named Grab Them All.
It's basically a script that accesses links in a predefined list and takes screenshots and saves them. But as it's a only a hack, there's some (a lot) of manual work to do.
Firstly, you need to provide hard links to all the webpages, ie, slides in presentation, in a
.txt
file. I did so in a file calledpaths.txt
and these were the contents in my case:Second and final step: after iNstalling the addon and restarting firefox, just start the addon. It opens a popup like this:

Now, it's as simple as 1,2,3. Select the
file with URLs
, select thedestination directory
and reduce theMax page processing time
.And Voila!
Let's go
All the slides will be downloaded as png format in sequential order. What's left to do is put them in a ppt or pdf format.