wkhtmltopdf\u4e00\u6b3e\u80fd\u628aHTML\u9875\u9762\u4fdd\u5b58\u4e3aPDF\u7684\u8f6f\u4ef6<\/a><\/p>","protected":false},"excerpt":{"rendered":"wkhtmltopdf\u4e00\u6b3e\u80fd\u628aHTML\u9875\u9762\u4fdd\u5b58\u4e3aPDF\u7684\u8f6f\u4ef6.md \u4e00\u3001\u7b80\u4ecb wkhtmltopdf \u548c wkhtmltoimage \u662f\u4e00\u4e2a\u4f7f\u7528 Qt WebKit \u5f15\u64ce\u505a\u6e32\u67d3\u7684\uff0c\u80fd\u591f\u628ahtml \u6587\u6863\u8f6c\u6362\u6210 pdf \u6587\u6863 \u6216 \u56fe\u7247(image) \u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\uff08\u5f3a\u8c03\u4e00\u4e0b\uff1a\u662f \u201c\u547d\u4ee4\u884c\u5de5\u5177\u201d \uff09 \u652f\u6301\u591a\u4e2a\u5e73\u53f0\uff0c\u53ef\u5728win\uff0clinux\uff0cos x \u7b49\u7cfb\u7edf\u4e0b\u8fd0\u884c\u3002 \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/wkhtmltopdf.org\/ \u5b98\u65b9github\uff1ahttps:\/\/github.com\/wkhtmltopdf\/wkhtmltopdf \u4e8c\u3001\u5b89\u88c5 \u5b98\u65b9\u5728github\u4e0a\u76842018\u5e740.12.5\u7248\u672c\u4e2d\u63d0\u4f9b\u4e86RPM\u5305\u5b89\u88c5\u65b9\u5f0f\uff0c\u5b89\u88c5\u5b8c\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86 \u4e09\u3001\u4f7f\u7528 \u4f7f\u7528\u4e5f\u5f88\u7b80\u5355\uff0c \u547d\u4ee4\u683c\u5f0f\uff1awkhtmltopdf [GLOBAL OPTION]… [OBJECT]… wkhtmltopdf https:\/\/www.baidu.com baidu.pdf \u7ed3\u679c\u5982\u4e0b \u6ca1\u6709\u4e2d\u6587\uff0c\u5927\u90e8\u5206\u539f\u56e0\u662f\u6ca1\u6709\u5b57\u4f53\u652f\u6301\uff0c\u53ef\u4ee5\u5148\u5b89\u88c5\u4e0b\u5fae\u8f6f\u96c5\u9ed1\u8bd5\u8bd5\u3002 yum install wqy-microhei-fonts -y \u53ef\u4ee5\u4e86\u3002 \u5173\u4e8e\u5b57\u4f53\uff0c\u8fd9\u91cc\u591a\u63d2\u4e00\u5634\uff0cCentOS\u4e2d\u5b89\u88c5\u4e2d\u6587\u5b57\u4f53\u5305\u7684\u4e00\u822c\u65b9\u6cd5 yum install xorg-x11-font-utils fontconfig -y #\u62f7\u8d1d\u5b57\u4f53\u5305\u5230\/usr\/share\/fonts\u5e76\u6267\u884c mkfontscale && mkfontdir && fc-cache -fv \u9700\u8981\u5c0f\u8bed\u79cd\u5b57\u4f53\u7684\u53ef\u4ee5\u770b\u4e0bgoogle noto\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[218],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1411"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=1411"}],"version-history":[{"count":1,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1411\/revisions"}],"predecessor-version":[{"id":1412,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1411\/revisions\/1412"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=1411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=1411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=1411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}