Extension:Pdf Export Dompdf

Overview
This extension is a modified version of the Pdf_Export Extension. See Extension:Pdf_Export for details.

I modified it because I wanted to do pdf-export on my shared hosting server. It was impossible to install htmldoc on it because I dont't have root access.

Searching the web, I found dompdf, an html to pdf converter written in php5.

Installation
Follow each step in order, and review the linked items as needed.
 * Install the original Pdf Export
 * Overwrite $IP/extensions/PdfExport/PdfExport_body.php
 * Note: All modifications to original code have been noted in my source to make it easy to track my code.
 * Create $IP/extensions/PdfExport/PdfExport_headfoot.php
 * Install dompdf
 * Extract dompdf to $IP/extensions/PdfExport/dompdf/
 * Note: You need to set DOMPDF_ENABLE_PHP to true in the dompdf config file for headers and footers to work
 * Add the following to LocalSettings.php:
 * Note: The above value can be changed to true if you would like to revert to using HtmlDoc (I use is_executable as a failsafe, just in case this value set to true, but HtmlDoc is not installed.

Code
Create or edit the following files accordingly.

PdfExport_body.php
Put the following into $IP/extensions/PdfExport/PdfExport_body.php:

PdfExport_headfoot.php
Put the following into $IP/extensions/PdfExport/PdfExport_headfoot.php: