首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >wkhtmltopdf footer-html编码utf-8

wkhtmltopdf footer-html编码utf-8
EN

Stack Overflow用户
提问于 2014-01-30 19:52:42
回答 2查看 26K关注 0票数 37

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>

将输出以下图像

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21455779

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档