0

When creating a Dynamic PDF in node using html-pdf, the content became cut at the end of pages.

Image of PDF

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?

Ashwanth Madhav
  • 1,084
  • 1
  • 9
  • 21

2 Answers2

0

try:

pdf.create(finalstr, {
  format: "A3",
  "footer": {
    "height": "10mm",
  },
  "border": {
    "bottom": "10mm"
  }
})
Paolo
  • 704
  • 9
  • 24
0

Try this, you can change height of header and footer..

pdf.create(finalstr, { format: "A4", "header": { "height": "20mm" } "footer": { "height": "20mm", } })