【发布时间】:2014-03-18 07:16:39
【问题描述】:
我正在使用 printheaderfooter.js 使用 Phantomjs 1.9.7 从 html 生成 PDF。 我想在标题中显示图像。
var PhantomJSPrinting = {
header: {
height: "1cm",
contents: function(pageNum, numPages) {
return '<img src="https://www.google.com.bo/images/srpr/logo4w.png" height="0.95cm"/>';
}
} };
但是,生成的 PDF 带有空白标题。标题中没有显示图像。
在标题中显示图像的任何解决方案?
【问题讨论】: