Update and rename pdf.php~ to generator.php