Question

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

Was it helpful?

Solution

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top