Support

Home Forums Event Espresso Premium PDF formatting

PDF formatting

Posted: February 7, 2016 at 3:24 pm


geoffmartyn

February 7, 2016 at 3:24 pm

Hi guys,

I’ve created a custom Invoice template and can get it print to a PDF as I went through and made sure it validated ok. However, I have an issue where my logo isn’t appearing, even though it’s viewable in the HTML invoice and is at a valid URL. Also, I’ve created a secondary address and put this to the right of the first main address top-left. While this displays fine in HTML, it renders in white on white and not quite in the same place as it shows in the browser.

Is there anything I can do to debug how the PDF creation works or do you have any idea as to why this might be happening?

Thanks

Geoff


Tony

  • Support Staff

February 8, 2016 at 4:49 am

Hi Geoff,

Which format is the image?

Can you link us to the invoice so we can take a look please?


geoffmartyn

February 8, 2016 at 5:03 am

Hi Tony – thanks for your reply.

It was a PNG but I’ve since changed it to a JPG and it’s still not showing.

http://scld.staging.wpengine.com/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-49c602f869e611a1043504208457c7f8&GRP_ID=36&id=157

The other issue is that I have the two addresses, which are there on the PDF but are showing up as white and the second address is pushed to the right.

Thanks

Geoff


Tony

  • Support Staff

February 8, 2016 at 6:14 am

Hmm, it is an issue with the HTML you are using, but I’m not sure what.

EE4 uses DOMPDF to generate the PDF’s which is MUCH more picky on what it considers valid HTML in comparison to your browser. The logo you have in the invoice is actually being loaded in the PDF it just looks like its being pushed way off the page (likely by whatever DOMPDF does not like about the address html you’ve added)

When I open up the PDF in adobe illustrator the image is there I just take a little digging to find it – http://take.ms/Mayfu

So unfortunately to find what the problem is your going to need to work through the HTML you’ve added to find out what it is the DOMPDF doesn’t like.

The support post ‘PDF formatting’ 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