Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

WebKit is quite powerful and can be quite easily used for generating a PDF, SVG, PostScript of PNG in almost no effort.

I wrote a simple Deck.JS [1] and S5 [2] PDF converter using a few lines of scripting. These programs take a slide presentation written in HTML5 and convert them into a portable PDF document. This is very handy since you can then share a single file that includes all graphical elements (fonts, images, layout) intact.

I have a GitHub toy repo [3] where I made a few tests with WebKit. On the the programs there (screenshot.pl) even lets you use XPath to find the subnode to grab.

[1] https://github.com/potyl/perl-App-deckjs2pdf

[2] https://github.com/potyl/perl-App-s5pdf

[3] https://github.com/potyl/Webkit



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: