views:

468

answers:

3

I am using reStructuredText & rst2s5 to create S5 slide presentations. It is great but I also want to have the presentation in PDF. How can I convert S5 to PDF?

S5 are HTML based... one of S5 features is to create print-outs of your presentation. So when I try to use a PDF printer from the browser I just get print-outs. I want to a PDF with the slides, 1 slide per page and all the formatting, colors and font-size from the original presentation.

+1  A: 

You should try the "wkhtmltopdf" command, which uses the well-known WebKit HTML rendering engine in the same mode that it uses when you select "Print" from the menu of a WebKit-powered browser.

On Ubuntu, with the "Universe" repository enabled, it's already available so I can just install it as a package.

Brandon Craig Rhodes
A: 

If you just want to create pdf or don't mind getting a different theme for the pdf, you could also use one these:

http://pypi.python.org/pypi/rst2beamer/0.6.6

http://pypi.python.org/pypi/rst2odp/0.2.3

http://lateral.netmanagers.com.ar/stories/BBS52.html

It is also possible to theme these to get the same theme as for the S5 presentation, but it takes a bit more work. I'm currently using rst2pdf with my own custom theme.

Matti Pastell