wkhtmltopdf –encoding utf-8不适用于–footer-html。
我正在使用以下命令。两个html文件也是utf8格式。
wkhtmltopdf –dpi 120 -O Portrait –encoding’utf-8′–footer-html /tmp/testFooter.html /tmp/testMain.html /tmp/testPDF.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>
输出以下图像