Quantcast
Channel: ibm – Seite 5 – mynethome.de
Viewing all articles
Browse latest Browse all 61

Convert DZSlides presentation to PDF

$
0
0

Given you have created and given a presentation based on DZSlides (maybe powered by AsciiDoctor & Gradle ;-) ), you might have the need to publish it at one point.
One of the most compatible way is to put the slides into a PDF, but that might not be as much obvious as you might expect. Here is one approach:

* Convert the slides to png files using the slides2png script:

groovy ./dzslides/scripts/slides2png file:///Users/markus/Documents/20151001_Presentation/slides/src/slides.html

As the script it uses GEB to utilize the browser and take screnshots from your slides, it requires a fully qualified URL to find your presentation. In this case, it resides on the filesystem, so it starts with file:// – you could also fire up a minimal HTTP server (python -m SimpleHTTPServer , anyone? ;-) ) to shorten the URL.

* The results are safed in /tmp/geb-reports by default, including a presentation.pdf file that is the desired PDF. Voilà :-)

Have fun!


Viewing all articles
Browse latest Browse all 61