View Single Post
Old 30th March 2012, 09:23
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts

Is it possible to create a personalized pdf invoice template based in existing templates?
Yes, just make a copy of one of the xisting templates. Ensure that the dircetory name has no white spaces as in your first attempt, use underscore "_" instead.

Then open the make_pdf_invoice.php file in your newly created directory and edit the calssname to match the new name. There are instructions in the file:

   Here we extend tfpdf and create a new class. the name of the Class has to be
   PDFInvoice_ plus the name of the template, in this case "default" so the full
   name of the class is "PDFInvoice_default".

class PDFInvoice_default extends tFPDF
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from
Reply With Quote