Image cutoff issue on next page while generating html to pdf in angulal using jspdf

26 views Asked by At

I am facing some issue like image cutoff issue while generating html to pdf in angular using jspdf library

enter image description here

onpdfExport() { 
    const doc = new jspdf("p", "pt", "a4");
    const source: any = document.getElementById("content-to-export")?.innerHTML;
    doc.html(source, {
      margin: [40, 0, 40, 0],
      autoPaging:'text',
      x: 0,
      y: 0,
      callback: function(pdf) {
        setTimeout(() => {
          doc.output("dataurlnewwindow");
        }, 500); 
      },
    },);
0

There are 0 answers