Support

Home Forums Ticketing Add-on Paper size?

Paper size?

Posted: October 8, 2012 at 7:36 am


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

  • Support Staff

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

  • Support Staff

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

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

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

  • Support Staff

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…

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