문제

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