PDF templates / need A5 page size / how to create user defined page size

Hi folks,

the creation of PDF-templates supports per default only a few page sizes (letter, legal and A4).
However, the list of supported page sizes can be easily extended by editing the dropdown list “pdf_page_size_dom” via “Dropdown Editor”.

There is a large list of formats available, which you can refer to via the function “_getPageFormat” in “modules/AOS_PDF_Templates/PDF_Lib/mpdf.php”.

If you need a special format, the list can be extended by adding a new line to the function mentioned above, e.g.:
case ‘MYSPECIALFORMAT’: {$format = array(396.85,595.28); break;}

HINT: The case label (format definition) must be uppercase!

So, this is it…

enjoy this tip

2 Likes