Вопрос

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