Extension:Collection/PDF Writer

Overview
mwlib.rl is a python library for writing pdf documents from MediaWiki articles which were parsed by the mwlib library.

See this press release Wikis Go Printable for more information on this project.

No Installation required !
The PDF Writer can run standalone on a server and provide PDF generation for multiple MediaWiki instances. A server for public testing and low traffic Wikis runs at http://tools.pediapress.com.

All you need is the Collection extension which is configured to use this server by default.

Example
[[Media:Solar system final.pdf|Solar system, example article from the English language Wikipedia, rendered as PDF using the PediaPress technology.]]

Technical
The PDF Writer uses the Python Reportlab libraries to generate PDF based on a DOM derived from parsing mediwawiki-markup using the mwlib parser. The Collection Extension can be used to select and manage articles that shall constitute the resulting PDF.

Source
mwlib.rl is copyrighted by PediaPress and is distributed under a BSD license (see the included README.txt for details).

Current sources can be obtained from our mercurial repository found at http://code.pediapress.com/hg/mwlib.rl. You can checkout a copy with the following command line (after installing mercurial):

hg clone http://code.pediapress.com/hg/mwlib.rl mwlib.rl.hg

If you don't have mercurial installed, you can use the following link to download the current version: http://code.pediapress.com/hg/mwlib.rl/archive/tip.tar.gz

Note that you will at least have to use python 2.4 and some kind of unix-like operating system (at least that is what we are using to develop mwlib.rl).

Install it with either 'python setup.py build install' or 'python setup.py develop'.

You will also have to install mwlib.

Mailing List
We've setup a gougle group for discussion of mwlib.rl. You can subscribe per email: mailto:mwlib-subscribe@googlegroups.com.

Programs
mwlib installs the following programs:


 * mw-render
 * generates documents in formats like PDF or ODF from MediaWiki articles


 * mw-zip
 * generates ZIP files from MediaWiki articles that contain all information to produce some output document like a PDF file


 * mw-serve
 * starts a render server that allows the Extension:Collection Collection extension to render documents from article collections

Configuration
If your MediaWiki has the MediaWiki API enabled, you just specify the base URL of the wiki as the configuration. For example using the English Wikipedia, this $ mw-render --config http://en.wikipedia.org/w/ --output test.pdf --writer rl Physics will produce a PDF document containing the article Physics.

Customization
It is possible to customize the resulting PDFs - for more information check the readme.txt (README.txt)

Other Approaches

 * Extension:Pdf Book
 * Extension:Pdf Export