25 January 2007

From Organic Design wiki
Warning.svg This is a blog item that needs to be converted to the new Bliki format


PDF export added to toolbox

A user inquired this morning about the old Open Office Export which is not really in a useable state, but it prompted me to have a bit of a look around for current MediaWiki article exporting options. I soon found HTMLDOC which, while not specific to MediaWiki, is able to convert HTML to PDF quite well, and is a well established project.

It was extremely easy to install on Debian using apt-get (I've added it to Debian Post Install), and their documentation is very good too which allowed me to integrate it into our XmlWiki environment in only a few minutes. The transform created to call the htmldoc command is pdf-export.php and is attached to the view event of an article via an XPath query in the URL of the export link in the toolbox.