eKoopmans/html2pdf.js

Pdf from html div get blank pages after 8

DidoMarchet opened this issue · 0 comments

Hi guys,
I export a pdf from an html div and I see ther pdf break after 8 pages (the other pages created are white).

Screenshot 2022-11-22 at 12 15 37

The div with which pdf is created contains a pretty long list (1400px).

Below the code I use:

const bordero = document
        .getElementById("bordero")
        ?.cloneNode(true) as HTMLElement;

        const opt = {
        filename: "bordero.pdf",
      };
      html2pdf().set(opt).from(bordero).save("bordero");

Are there something I missed?

Thansk in advance and kind regards,

Davide