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?
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.
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.
Viewing 3 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.