PDF invoice - how to change the page format

  • Frank Ermen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 days ago #96604 by Frank Ermen
PDF invoice - how to change the page format was created by Frank Ermen
Hi!

Might it be possible to change the page format of the invoices? It seems to me, that for format is a US one - an we do need the European A4.
Within the *ticket settings* it it possible to change within A7 up to A4 :silly: might it be possible to adjust a php file?

Regards,
Frank :)

Please Log in or Create an account to join the conversation.

More
9 years 3 days ago #96639 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PDF invoice - how to change the page format
Yes. It is possible

1. Open the file components/com_eventbooking/helper/helper.php

2. Find the method generateInvoicePDF

3. Find this line of code (in latest version it is 4288)
Code:
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

4. Change it to something like
Code:
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, 'A4', true, 'UTF-8', false);

A4 in the code above can be changed to A5, A6, A7 depends on the size you want to use

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc