When creating a Dynamic PDF in node using html-pdf, the content became cut at the end of pages.
In html, added <div id="pageFooter"></div>
Code that used to create PDF is
pdf.create(finalstr, {
format: "A3",
"footer": {
"height": "10mm",
}
})
Is there any solution?
Is it possible to create PDF from HTML using PhantomJs?
try:
pdf.create(finalstr, {
format: "A3",
"footer": {
"height": "10mm",
},
"border": {
"bottom": "10mm"
}
})
试试这个,你可以改变页眉和页脚的高度..
pdf.create(finalstr, { format: "A4", "header": { "height": "20mm" } "footer": { "height": "20mm", } })
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.