The HTML invoice fits nicely on a page but when downloading the pdf its over 2 pages. How can we change the paper size and/or the font size so it fits also on a page.
Hello, could you let us know the version of Event Espresso 4 that you are using (https://eventespresso.com/wiki/ee4-changelog/)? We may need to apply some enhancements to the PDF generator.
Event Espresso uses DOMPDF to generate the PDF’s and uses the Invoices current CSS to do so.
This means that to change the font-size of the PDF you would need to create what we call a message ‘variation‘ to use custom CSS within the Invoice.
Currently it isn’t possible to change the Paper size without editing core (both Event Espresso core and DOMPDF) I’ve created a ticket for some developer feedback on this.
We had to dig a bit to get an older copy of EE4 to find this. What you can do is open up the stylesheet your invoice uses. For example, if you use the simple css stylesheet, you open up /modules/gateways/Invoice/lib/templates/css/simple.css. Then on line 6 you’ll see the typography section. It’s there where you can change the various font-size style rules to make them smaller. It will also help to make the line-heights slightly smaller too.
Viewing 7 reply threads
The support post ‘EE4 Invoice PDF paper & font size’ 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.