Jump to content

How to add my PDF template in WHMCS PDFinvoice


Bonkie

Recommended Posts

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

Link to comment
Share on other sites

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?
Link to comment
Share on other sites

  • 3 years later...

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated