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. Go to the default mediawiki upload page, Special:Upload. Upload files as usual. This extension automatically detects the pdf extensions and makes the necessary changes, even to the Destination Filename. There are no added special pages with this extension, just a change in the Upload class used for the upload. This means all rights that apply to the Upload still apply.

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: Not sure if you require the  because this hook changes the file parameters processed by the UploadBase class before the File verification processes. Still recommended so the extension shows in allowed file types on the Upload page.

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