Jump to content

PDF Logo too big


ciaoweb

Recommended Posts

Hello,

 

I am having an issue on pdf invoices: The graphic logo look too big and also there is an unexpected big white padding above it.

 

You can see a screenshot here: (click on top right to enlarge)

https://www.evernote.com/shard/s32/sh/bf46c364-a58d-4f74-9343-8fec76921f74/497496f3723b0b170c7b2c34bead022d

 

I made the logo much smaller so I would like this size to be shown on pdf invoices like the attachement.

I tried to edit the invoicepdf.tpl same way as shown in previous posts with no success.

 

Please can you help?

Thanks

Regards

Roberto Ciccolella

logo.png

Link to comment
Share on other sites

At the top of invoicepdf.tpl, you should see the following:

 

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

 

You will need to adjust the 20,25,75 numbers to size the logo. Remember to clear the template cache (in the templates_c folder) after you make the changes.

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