Jump to content

PDF Invoice template


ruben

Recommended Posts

I used to use a very nice template for my previous invoices. Since I switched to WHMCS it is much easier, since I dont have to do everything by hand :shock:

 

Is there a way to include my graphic ( it is 8.5 x11 graphic )as a background in the outgoing PDF invoices ? Could anyone give me any tips on how to go about doing it ?

 

thank you in advance.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

In the example, header() from FPDF website, whmcs' version is blank and produces the logo and company information on the page.

 

Shouldn't this be moved into the header() and the company signature and whmcs link added to the footer? The invoice number should also link to that invoice on the page.

 

Here are somethings I have added, thus far:

 

<?php
$pdf->SetCompression(true);
$pdf->Ln(29);
# Logo
$pdf->Image(ROOTDIR.'/templates/strikehawk/images/googlesearch.gif',20,25);

#Global
$invoiceprefix = $_LANG["invoicenumber"];

#PDF Subject
$subject = $invoiceprefix.$invoicenum . ' ' . $companyaddress[0];
$pdf->SetSubject($subject);

#PDF Creator
$pdf->SetCreator($companyaddress[0]);
$pdf->SetTitle($subject);

 

I also want to extend pdf properties. PDF Settings -> Reading Options -> Language as well as signing certificate and limitations.

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