Support

Home Forums Event Espresso Premium Logo not fitting on top-left of invoice

Logo not fitting on top-left of invoice

Posted: October 22, 2012 at 4:15 pm


Dean

October 23, 2012 at 3:20 am

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.


Nick Putman

October 23, 2012 at 4:42 am

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


Dean

October 23, 2012 at 5:09 am

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.

Event Espresso