On Fri, Aug 5, 2011 at 9:56 PM, N. Max Pierson nmaxpierson@gmail.comwrote:
New to the list, so please tell me to RTFM if I've missed anything or this is the incorrect place for my question.
We've been using and hacking 2 different extensions (PdfBook and PdfExport) to render our wiki pages to PDF. Both extensions have been hacked enough to work quite well but now we I a requirement to include CSS so that the rendered PDF looks EXACTLY like the wiki.
A couple years ago I did some brief experiments using this tool:
http://code.google.com/p/wkhtmltopdf/
It simply uses the WebKit HTML renderer implementation and PDF output implementation available in the common Qt framework library to render any given web page to PDF, just as if you had printed / saved to PDF from a browser.
If you only need to render out individual pages (as opposed to bundling collections of pages for book-style publishing with additional credit & license information), this sort of thing is probably a far better option than anything that tries to work with the low-level wiki markup (necessitating reimplementation of all of MediaWiki's parser, any plugins used, and of course... an HTML renderer.)
-- brion