Bonkie Posted July 2, 2009 Share Posted July 2, 2009 Hello, I've got a question about the customisation of the PDF Invoice. How can I add my own briefpaper template in it? Because I want to have it personilised with my template which I have in PDF. I know that FPDF and FPDI can do it but I dont know how to integrate it in WHMCS. If I use the $pdf->setSourceFile($filename); the invoice flips.. Kind regards, Rick 0 Quote Link to comment Share on other sites More sharing options...
freedombi Posted July 2, 2009 Share Posted July 2, 2009 I don't see SetSourceFile defined either for fpdf or tcpdf, so I don't know what it does. Would you be able to simply include() the file in question? 0 Quote Link to comment Share on other sites More sharing options...
Bonkie Posted July 2, 2009 Author Share Posted July 2, 2009 The SetSourceFile function is a functionality of FPDI a extended lib for FPDF. What does it do: If you have a PDF template like in your company style. You can simply include it as a background this way. So it merges the template with the data you put on it. But if I change the template to use this the invoices wont work, so i tried. I don't see SetSourceFile defined either for fpdf or tcpdf, so I don't know what it does. Would you be able to simply include() the file in question? 0 Quote Link to comment Share on other sites More sharing options...
Bonkie Posted July 8, 2009 Author Share Posted July 8, 2009 Does nobody have any idea's how I can put an other PDF in the background? Even saving the PDF template as a PNG and load it as a background image didn't work.. 0 Quote Link to comment Share on other sites More sharing options...
Tayfun91 Posted September 16, 2012 Share Posted September 16, 2012 Hello, i´ve got the same problem. I just want to add my own briefpaper as background for the invoice. i have tryed with a code which i found on here... /http://www.tcpdf.org/examples/example_051.phps But it only puts a second site on the invoice with the background i want. @Bonkie: Did you find a solution for it? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.