wkhtmltopdf --编码utf-8对--footer-html无效。
我正在使用以下命令。这两个超文本标记语言文件也是utf8格式。
wkhtmltopdf --dpi 120 -O Portrait --encoding 'utf-8' --footer-html /tmp/testFooter.html /tmp/testMain.html /tmp/testPDF.pdf
这两个文件都有法语字符。但在pdf中,页脚有不好的字符。
<html>
<head>
<title></title>
</head>
<body>
<div style="width:95%;font-size:9pt;font-family:Arial;">
<div style="border-top: 1px solid black;width: 100%;text-align: center;">
test - Guérin 691BANNE - FRANCE - SA au capital 0 Euros -737 729 - Téléphone : 86 03</div></div>
</body>
</html>
将输出以下图像
https://stackoverflow.com/questions/21455779
复制相似问题