Changed PDF generation from jsPDF to phpPDF