Support

Home Forums Event Espresso Premium EE4 Invoice PDF paper & font size

EE4 Invoice PDF paper & font size

Posted: August 16, 2015 at 9:39 pm

Viewing 7 reply threads


ac

August 16, 2015 at 9:39 pm

Hi,

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.

Thanks,
G.


Lorenzo Orlando Caum

  • Support Staff

August 17, 2015 at 9:16 am

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.


Lorenzo


ac

August 17, 2015 at 3:36 pm

Thanks for getting back to me.

EE4 4.4.7 – We have customized this version & we cannot upgrade the plugin to the latest version as yet.

Thanks,
G.


Jonathan Wilson

August 17, 2015 at 4:36 pm

Hello there,

I’m sorry. We can’t provide support if the core plugin has been modified. Can you please let us know if the issue still occurs when you have updated?

Thanks.


ac

August 17, 2015 at 4:38 pm

Jonathan, There is not an issue!

We just want to change the paper size (it looks like its letter & we need A4) and/or font size of the PDF invoice,
How do we do that?

Thanks,
G.


Tony

  • Support Staff

August 18, 2015 at 7:12 am

Hi G,

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.


ac

August 18, 2015 at 8:58 pm

The variation document talks about messages not pdf??

Is there any way you guys can give me more info/pointer about how to change the font-size – thanks -G.


Josh

  • Support Staff

August 20, 2015 at 9:44 am

Hi there,

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.

Event Espresso