wkhtmltopdf css sizes in cm/mm

前端 未结 3 1243
眼角桃花
眼角桃花 2021-02-12 11:54

I use wkhtmltopdf to produce A4 sized PDFs. When I create a

tag and set its style to height: 297mm; width: 210mm (which is the defined size
3条回答
  •  别跟我提以往
    2021-02-12 12:22

    I had a method that worked for me that used margins.

    style="margin:0,auto"
    

    If that doesn't work try:

    style="margin:0,auto,0,auto"
    

提交回复
热议问题