Modified DomPDF to a better working version, modified templates with a PDFMODE