Support

Home Forums Event Espresso Premium Logo stretched in generated invoice pdf

Logo stretched in generated invoice pdf

Posted: June 26, 2012 at 3:36 pm


Josh

  • Support Staff

June 26, 2012 at 4:13 pm

Someone else ran into this. See this post in the old forums: https://eventespresso.com/forums/2011/11/pdf-invoice-logo-stretching-over-text/


sheathe

June 26, 2012 at 6:18 pm

Thanks for the link Josh,
Turns out I was able to improve the quality of the logo (so that it is not pixelated/stretched) simply by using a higher resolution image (e.g. 150 or 300dpi). I didn’t even need to change the settings in /gateways/invoice/function.pdf.php line 15:

$this->Image($invoice_payment_settings['image_url'],10,8,90);//Set the logo if it is available

You can mark this one resolved now.


clewis

July 1, 2012 at 3:30 am

I have used a high resolution logo, that did not work…. then I tried the settings in the /gateways/invoice/function.pdf.php document and this has not worked for me either…. any more tricks to try?


sheathe

July 1, 2012 at 11:09 am

@clewis – This is a little embarrassing, but I had been trying so many things to get the logo to look better that I had forgotten I had installed a newer version of FPDF. So that, combined with the higher resolution image file must be what caused it to start working properly.

FPDF 1.7 is available on their site and it defaults to 96dpi instead of 72dpi. It’s never recommended to modify core files, but this was so easy to do, you might consider making an exception. If you’re comfortable doing it, and as long as you remember that you did it each time there is an upgrade to Event Espresso, you can install the new version in:

/plugins/event-espresso-v???/class/fpdf (where ??? is your current version of Event Espresso)

Remember to keep the old version of FPDF so you can go back to it if something breaks. I just renamed the original fpdf folder to /fpdf1.6/

By the way, I’ve read that FPDF is being replaced with HTML invoices in 3.2 but it might be nice if they package the new FPDF in an interim release.


clewis

July 2, 2012 at 5:56 am

Thanks sheathe,
I removed the info I had inserted into the “Payable to: and Address to Send Payment: and that seems to work. Appreciate the feedback.


Cody Landefeld

July 12, 2012 at 2:31 am

I’m still having an issue with this. Any more specific ideas?


Cody Landefeld

August 15, 2012 at 1:01 pm

Anyone.
Please help with this. Can someone just provide me with the correct dimensions so we can correct this once and for all? Please help!


Cody Landefeld

August 15, 2012 at 1:04 pm

TOPIC IS NOT RESOLVED.


Josh

  • Support Staff

August 16, 2012 at 8:58 am

Hi Cody,

Usually this ‘just works’ but FPDF can be finicky in some server configurations. Have you tried the solution outlined here: https://eventespresso.com/forums/2011/11/pdf-invoice-logo-stretching-over-text/

As an aside, it’s best to start a new topic instead of posting in a thread that’s been resolved. That way the support team will know which threads to look at.


Cody Landefeld

August 16, 2012 at 11:27 am

Thanks for getting back. I made the change according to the code above but it didn’t change anything. What the heck???


Josh

  • Support Staff

August 16, 2012 at 12:15 pm

Which change? The one Matt posted, or the one I posted?


Cody Landefeld

August 16, 2012 at 12:21 pm

Matt. I went onto line 14 and made the suggested edit and it’s still exactly the same.


Josh

  • Support Staff

August 16, 2012 at 2:13 pm

Hi Cody,

Let’s try to resolve this issue in one thread, okay?

https://eventespresso.com/topic/logo-stretched-in-generated-invoice/#post-14191

The support post ‘Logo stretched in generated invoice pdf’ 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