Javascript 节点html pdf打印出额外的空白页
我对node非常陌生,对于这个项目,我使用的是Javascript 节点html pdf打印出额外的空白页,javascript,html,printing,html-pdf,node-html-pdf,Javascript,Html,Printing,Html Pdf,Node Html Pdf,我对node非常陌生,对于这个项目,我使用的是HTMLPDFAPI,它可以自动从文件夹打印出最近的pdf文件。我面临的问题是,它总是会额外打印一页空白。有没有办法使用HTML pdf设置打印唯一的第一页?我只是想消除额外的空白页问题 代码 let options = { "height": "8.51in", "width": "11.25in", }; pdf.create(data
HTMLPDF
API,它可以自动从文件夹打印出最近的pdf文件。我面临的问题是,它总是会额外打印一页空白。有没有办法使用HTML pdf设置打印唯一的第一页?我只是想消除额外的空白页问题
代码
let options = {
"height": "8.51in",
"width": "11.25in",
};
pdf.create(data, options).toFile("report.pdf", function (err, data) {
console.log('Creating pdf file.');
if (err) {
console.log('Error while creating pdf.');
} else {
res.send("File created successfully and session id was "+session_id);
}