i’m using jsPdf in my reactJs i m downloading html to pdf. it is downloading correctly but after page change my content is cutting the page

enter image description here
you can see the image what is issuse

here is function that download pdf :-

const handleGeneratePdf = () => {
    const doc = new jsPDF({
      format: "a1",
      unit: "px",
      orientation: "p",
      putOnlyUsedFonts: true,
    });

    // Adding the fonts
    doc.setFont("Inter-Regular", "normal");
    doc.html(reportTemplateRef.current, {
      async callback(doc) {
        await doc.save("document");
      },
    });
  };

Kindly solve this issue