Posted: October 22, 2012 at 4:15 pm
Hi, Whatever size I make the logo for my invoice, it is always stretched to too large a size, when the invoice is generated, so that it overlaps with the address for my organisation. See the attached image for an example of how a small image gets stretched: Could someone help out with fixing this? Thanks, Nick | |
Hi Nick, The resolution of this involves a code edit. in event-espresso/gateways/onvoice/function.pdf.php is a line (should be line 15) $this->Image($invoice_payment_settings[‘image_url’],10,8,90);//Set the logo if it is available If you change the 90 to a lower number it will reduce the size. I went with 0. However the size of the image is still scaled based on the pdf resolution. So it may take a bit of playing around with that number and/or the image to get it to look right. For that amongst other reasons we are looking to implement an HTML to PDF system in future releases. | |
Thanks Dean, Changing this setting to 50 did the job. I agree that an html solution for the invoice would be better, hopefully with fully customisable templates (as with the emails) in the admin section. By the way, with upgrades of EE, are all files changed, or only ones that have changed since the last installed release? Nick | |
Hey, Yes absolutely agreed. I don’t know the full details of it but I know the system is being looked to be changed. Re updates: ALL files are changed, with exception of files copied to to uploads/espresso/* That file can be copied to the uploads folder (uploads/espresso/gateways/invoice/) but copy the template.php file over as well otherwise it wont work. | |
The support post ‘Logo not fitting on top-left of invoice’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.