Jump to content

Logo not showing in PDF invoices


Chris74

Recommended Posts

I'm having a strange problem - since a recent update (not sure which one unfortunately) Our logo is no longer appearing in the PDF invoices. It isn't displaying anything where the logo should be.

 

This is the top of invoicepdf.tpl

 

# Logo
if (file_exists(ROOTDIR.'/images/logo.png')) $pdf->Image(ROOTDIR.'/images/logo.png',20,25,50);
elseif (file_exists(ROOTDIR.'/images/logo.jpg')) $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25,50);
else $pdf->Image(ROOTDIR.'/images/placeholder.png',20,25,75);

 

I've compared this to the default and it is identical other than my change of 50 instead of 75 for the sizing of the image.

 

The logo.png I'm using is fine and it's the one linked to in emails etc, so I know there's nothing wrong with it.

 

I'm completely puzzled as to why this isn't being added to the PDF's.

 

Can anyone offer any advice?

Link to comment
Share on other sites

  • 1 month 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