简体   繁体   中英

How to remove autoindents from generated with dompdf PDF

I am using the latest dompdf to generate some agreement. Here how it looks like finally (on the screen I am using dompdf debug service as you may see in url bar):

在此处输入图片说明

As you see there are some indents aroung the background. I tried to use margin/padding directives in internal css but there no any changes. Please tell me, may I do something wrong? I use laravel-dompdf package, but I think that the reason of paddings is in setttings or something like that.

找到了答案:我需要使用它:

@page { margin: 0; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM