I'm using the MPDF library to generate some documents, and I'm trying to make the blank margins bigger.

I found two options in the doc: nonPrintMargin and bleedMargin.

I tried to change the values in both config.php and at runtime but I got no change.

Am I doing something wrong, or my printer overrides these settings ?

Thanks

有帮助吗?

解决方案

I resolved this by making the sheet size a bit smaller than A4 :

sheet-size: 189mm 276mm;

Then when I print I must set in the printer options : Size : Real size (and not ADJUST or something).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top