Hi *,
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. Since htmldoc doesn't support CSS
as of yet, I've been looking at some different approaches to rendering
wiki's to PDF.
The first option I came across was PrinceXML. This does quite a nice job but
at a cost of a license ~$6k USD. Unfortunately that's a deal breaker due to
the nature of the projects (some of which are funded and others are
completely open and not funded except for my time). I then ran across
wkhtmltopdf which utilizes QTWebkit. After a few scripts to test externally,
this seems to be a viable option that I would like to put some cycles
towards.
I've been using mediawiki for quite some time and know PHP, so writing an
extension should not be to terribly hard. I've been reading through the
manual on extension development (hooking, parsers, etc) and kinda get the
idea of how to do it. I'm sure that after a little trial and error and
looking at others source, I should be able to get what I need done and give
the extension back if anyone would be interested.
Has anyone gone down this road before with trying to render wiki's with
CSS?? (We currently have custom Common.css and Print.css files on many wiki
sites). Obviously I don't want to have to re-invent the wheel, but I have
yet to see any extensions that support CSS.
Any feedback would be greatly appreciated!!
TIA,
max