Extension:UploadPDF

What can this extension do?
This extension plugs into Upload series, and automatically translates pdf files into jpeg images during the upload process.

Usage
For use with Single Page PDF images and slides.

Download instructions
Please copy and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

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

Configuration parameters
Not yet Implemented:
 * $wgUploadPDFToggle - If true, places a toggle to turn on and off auto conversion of pdf to jpeg.
 * wgUploadPDFdefault - If true, sets the default value of toggle to On.

Code
This still has a lot of wfDebug statements. I'm new to php, and figured out some of the variable and function passing properties the hard way.

UploadPDF.php

UploadPDF-body.php