R3volver Posted December 4, 2012 Share Posted December 4, 2012 Hi Guys! Since v1.5 i got some troubleshooting with the invoices : the brand logo's size is like 1/4 of the page! Does anyone has a clue on how to reduce the logo's size on invoices? Best regards, R3volver. Link to comment Share on other sites More sharing options...
BillyHardcore Posted December 4, 2012 Share Posted December 4, 2012 Well the template for making the Invoice PDF's are located in /root/pdf/Invoice.tpl Take a look at that for starters? Link to comment Share on other sites More sharing options...
scottm Posted December 4, 2012 Share Posted December 4, 2012 (edited) Hello R3volver, Reuploading the logo at the desired size would be best, however this may affect the logo appearance elsewhere on your site. You can change the size of the logo on your invoice by going to /pdf/header.tpl At the top, you will see the code for the logo image as below: <td style="width: 50%"> {if $logo_path} <img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if} </td> This is the default, using the provided width and height. If you want to reduce it, you can simply divide the variables by your desired amount. For example, if I want the height and width to be 1/2 of the provided parameters, it would look like this: <td style="width: 50%"> {if $logo_path} <img src="{$logo_path}" style="width:{$width_logo/2}px; height:{$height_logo/2}px;" /> {/if} </td> Note the /2. You may want to try different numbers to get the best fit for your logo. Best Regards, Scott M Edited December 4, 2012 by scottm (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts