Modified pdfgen.php so it does not try to convert a file that is already a pdf.