CalcBuilder Forum

Paper size for PDF output

User TheFencepedia 2024-07-12 17:55:51

Hi again,

Another question.

What size paper does the PDF output generate?

Some places use A4 paper sizes, but the US and Canada use Letter.

If the PDF output size is not correct for the area, it won't print correctly. Can you confirm?

Moonsoft support 2024-07-13 10:28:59

Hello,

By now there is no parameter to configure paper size in Calc Builder. You can set it manually in code in case you want to try:

ROOT/components/com_calcbuilder/View/Calcbuilder/EpdfView.php line 98
replace:
$mpdf = new \Mpdf\Mpdf(>);
with:
$mpdf = new \Mpdf\Mpdf(>>);

ROOT/components/com_calcbuilder/View/Calcbuilder/EpdfView.php line 101
replace:
$mpdf = new \Mpdf\Mpdf();
with:
$mpdf = new \Mpdf\Mpdf(>);

We'll include this suggestion for study the inclusion of a new configuration parameter for future versions.

Thanks. Regards,
Moonsoft Team

...
List Manager

Build different lists for your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!