Posted: June 26, 2012 at 3:36 pm
Is there a recommended size/format for the logo file to be used by the Invoice gateway? For some reason, it is always stretched inside the PDF and doesn’t look very professional. |
|
Someone else ran into this. See this post in the old forums: https://eventespresso.com/forums/2011/11/pdf-invoice-logo-stretching-over-text/ |
|
Thanks for the link Josh,
You can mark this one resolved now. |
|
|
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? |
@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. |
|
|
Thanks sheathe, |
|
I’m still having an issue with this. Any more specific ideas? |
|
Anyone. |
|
TOPIC IS NOT RESOLVED. |
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. |
|
|
Thanks for getting back. I made the change according to the code above but it didn’t change anything. What the heck??? |
Which change? The one Matt posted, or the one I posted? |
|
|
Matt. I went onto line 14 and made the suggested edit and it’s still exactly the same. |
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.