Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Paper size? | Event Espresso - Staging Server

Support

Home Forums Ticketing Paper size?

Paper size?

Posted: October 8, 2012 at 7:36 am

Viewing 9 reply threads


Jesper Kahr Nielsen

October 8, 2012 at 7:36 am

Hi

Were does I set the default paper size?
I need the paper size on the printed pdf to be a A4 (210mmx297mm)?


Josh

October 8, 2012 at 1:20 pm

Event Espresso doesn’t have a paper size setting, but most printer software settings do.


Jesper Kahr Nielsen

October 8, 2012 at 1:34 pm

Ok. How do I the turn the ticket pdf file from 215mm x 279mm into 210mm x 297mm?

http://en.wikipedia.org/wiki/Letter_(paper_size)
http://en.wikipedia.org/wiki/Paper_size


Josh

October 8, 2012 at 1:48 pm

I’ve not tested this, but you could try changing DOMPDF’s default page size setting. This is located in the tpc directory of the Event Espresso plugin in dompdf_config.inc.php on line 237. You could change line 237 to read:

def("DOMPDF_DEFAULT_PAPER_SIZE", "a4");


Jesper Kahr Nielsen

October 8, 2012 at 2:23 pm

It made the pdf two sided and still in the US letter format.


Dean

  • Support Staff

October 9, 2012 at 12:21 am

Hi Jesper,

Changing the above will change the size for general invoices. For the Tickets, you will need to edit the espresso ticketing functions.php. On line 227 there is a commented line

//$dompdf->set_paper('A4', 'landscape');

Uncomment it and change landscape to portrait. Only issue with this is the formatting is off slightly. To fix this I edited the simple.css file (the one I was using) to pull the document over slightly.

.outside {
    padding:20px;
    width:800px;
    margin-left:-30px; //I added this negative margin
}

Hope that helps.


Jesper Kahr Nielsen

October 9, 2012 at 12:35 am

Hi Dean. That help me. Thank you!

By the way do you know you the invoice contains some html tags?
http://print2013.se/files/2012/10/Invoice_21_test-1-5072e173b5b30.pdf


Dean

  • Support Staff

October 9, 2012 at 12:58 am

You’re welcome.

Thanks for the heads up re the <br /> tags, I will ask the devs to look at that.


Josh

October 9, 2012 at 8:45 am

Hi Jesper,

Can you look in the Event Espresso>Payment Settings under Invoice setting and check to see if there are break tags in the form field text box for “Address to Send Payment”. If they are there, these can be removed and once you update the invoice payment settings, these will no longer appear.


Jesper Kahr Nielsen

October 9, 2012 at 11:22 pm

Yes theres was some line breaks. Thank you…

Viewing 9 reply threads

The support post ‘Paper 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 - Staging Server