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