Support

Home Forums Event Espresso Premium Change Paper Size for PDF

Change Paper Size for PDF

Posted: November 2, 2018 at 9:19 pm


EbeciaConnect

November 2, 2018 at 9:19 pm

How can I change the PDF paper size to A4?
Currently it’s in letter size.
The HTML version of receipts looks Ok, but when I click on PDF, it generates a Letter-sized PDF. I need it to be in A4.
Thanks in advance for your help!


Josh

  • Support Staff

November 5, 2018 at 12:59 pm

Hi,

Starting with Event Espresso version 4.9.70.p, you’ll be able to change the PDF paper size to A4 by adding the following to your site’s wp-config.php file:
define('DOMPDF_DEFAULT_PAPER_SIZE', 'A4');

We plan on releasing Event Espresso version 4.9.70.p sometime this week.


EbeciaConnect

November 5, 2018 at 11:55 pm

Since DOMPDF is only used by Event Espresso, wouldn’t it be better to have a setting under EE to do that? Like, on the general settings page, so that we don’t have to edit a config file?


Josh

  • Support Staff

November 6, 2018 at 12:18 pm

Hi,

One day they may add an option, and the option will most likely be within the Invoice template editor to allow for multiple custom PDF invoices with different paper sizes. In the meantime, the DOMPDF_DEFAULT_PAPER_SIZE constant is sufficient for preserving backwards compatibility. The backwards compatibility part is important because prior to Event Espresso 4.9.69.p, the constant was checked and that check was removed in 4.9.69.p.

The check was restored in Event Espresso version 4.9.70.p, which was released earlier today.

The support post ‘Change Paper Size for 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.

Event Espresso