PDF page format

Put your suggestions here.
Post Reply
Griffin
Posts: 40
Joined: 18 Mar 2018, 14:56
Name: D
Location: Netherlands

PDF page format

Post by Griffin »

Hi there,

At the momet, PDF export sizes are "letter". In European countries, we mostly use A4. For this, I have edited the source code. However, having a setting would be more convenient to handle this:

modules\items\actions\export_template.php

Code: Select all

$dompdf->set_paper('letter', 'landscape');
into

Code: Select all

$dompdf->set_paper('A4', 'portrait');
same goes for plugins\ext\classes\templates\export_templates_file.php:

Code: Select all

      if($template_info['page_orientation']=='landscape')
      {
      	$dompdf->set_paper('A4', 'landscape');
      }

      if($template_info['page_orientation']=='portrait')
      {
      	$dompdf->set_paper('A4', 'portrait');
      }
See picture for my suggestion within export templates.

For me this has no priority, I can change the code myself, but perhaps it isn't much of a hassle to include it :)

Kind regards
Attachments
pdf-size.PNG
Post Reply