Extension:Mpdf

The Mpdf extension lets you export wiki page as PDF file converted by mPDF PHP class.

What can this extension do?
This extension lets you export wiki page as PDF file. It based on Extension:PdfBook, but use mPDF PHP class, instead of Htmldoc.

Advantage:
 * no need to install additional components, ...

About mPDF
mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements.

Usage
The PDF creation is initialised by the mpdf action, so a page can be downloaded as a PDF file directly from a link such as: http://www.foo.bar/wiki/index.php?title=Main_Page&action=mpdf

A more generic way of creating the link is to use the "fullurl" parser function and the FULLPAGENAMEE built in variable as in the following example. [ download this page as a PDF file] This link can then be added to a template which can be transcluded into any page for downloading as a PDF file.

Raw HTML output
You can download the file as a single HTML document by setting format=html in the query-string. Example: http://www.foo.bar/wiki/index.php?title=Main_Page&action=mpdf&format=html

Download instructions
Please wait, source code preparing for publication, and will be ready in a few days...

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
Here are some global variables which affect the operation of the extension. These should be set in your LocalSettings.php file after the include of the Mpdf.php script.