Jump to content

Change background colour of PDF invoice


Recommended Posts

Hello,

I'm not sure if this has been covered before, but I have done a good search and can't find the answer I'm looking for. I've had a quick look in pdfinvoice.tpl but can't see anywhere to change the body colour, just the back ground colour for the table cells themselves. Problem is, my logo is all white because my background colour inside the client area is very dark (brand colours) and WHMCS is very unintuitive and relies on one single logo for emails, logo front-end and admin emails etc. it's like they left out the simplest things. Not sure if @brian! has covered this before, but no doubt. Please advice. 

 

Thanks in advance

 

Link to comment
Share on other sites

18 hours ago, inteldigital said:

Not sure if @brian! has covered this before, but no doubt.

just for completion, the usual solution for a situation like that would be to use a background image rather than specify a colour in the code... though because the image has to be A4/letter, it will increase the size of the PDF... it's been years since i've been asked about this!

19 hours ago, inteldigital said:

Problem is, my logo is all white because my background colour inside the client area is very dark (brand colours) and WHMCS is very unintuitive and relies on one single logo for emails, logo front-end and admin emails etc. it's like they left out the simplest things.

it's not necessarily true that it needs to use the same logo (actual same file) for all three - e.g the email logo URL can be defined in general settings... it's true that WHMCS would like to use logo.png/jpg as the source for both the website and PDF logos, but you can define what logo it used on the website by defining a path for assetLogoPath in a hook (i've posted that hook previously)...

14 hours ago, inteldigital said:

Never mind, must have been a long day I just realised I can hard code the logo URL to a different one.

... and as you have found out, you can define a different path in the PDF too.

Link to comment
Share on other sites

  • 2 weeks later...

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