letter-spacing is too large with wkhtmltopdf

后端 未结 9 1106
情书的邮戳
情书的邮戳 2021-02-06 07:30

I\'m using wkhtmltopdf to download a webpage as pdf.

But the css property letter-spacing seems doesn\'t work

font-size:20px; letter-spacing:0px;
<         


        
9条回答
  •  再見小時候
    2021-02-06 07:46

    in the CSS add the Following Code for Body

    body {
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    }

    and the --dpi 200. This Worked for Me.

提交回复
热议问题