Chris74 Posted December 16, 2013 Share Posted December 16, 2013 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 18, 2013 WHMCS Support Manager Share Posted December 18, 2013 Hi, If you delete the png and save it as a jpg instead, does that help any? 0 Quote Link to comment Share on other sites More sharing options...
Chris74 Posted January 23, 2014 Author Share Posted January 23, 2014 In the end I simply replaced the template file with the original, even though they were the same file size and identical in content, it started working again. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.