Jump to content

PDF Invoices


nibblesmctwitch

Recommended Posts

The word is taken from the invoice status from memory, but there's a bug in the PDF library used to generate the PDF and you need to supply 0 for the second and third colours otherwise the result is grey. This is a problem with the PDF generating code, but is easily fixed with a small workaround in WHMCS - small code excerpt:

 

100,101c161,163
< $pdf->SetTextColor(245);
< $pdf->Write(5,strtoupper($status));
---
> $pdf->SetTextColor(245, 0, 0);
> $pdf->Write(5,strtoupper($status));

Link to comment
Share on other sites

  • WHMCS CEO
The word is taken from the invoice status from memory, but there's a bug in the PDF library used to generate the PDF and you need to supply 0 for the second and third colours otherwise the result is grey.

Light grey is the colour intended! It's meant to be like a watermark

 

Matt

Link to comment
Share on other sites

Light grey is the colour intended! It's meant to be like a watermark

 

Matt

Sometimes my acuity scares me :)

 

Then you should consider using the correct rgb values, as currently you're specifying "all red" and getting grey. Of course, you may like that! :P

 

Cheers,

 

Brian

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