let page = document.getElementById("divToPrint"); html2PDF(page, { jsPDF: { unit: "pt", format: "A4", orientation: "portrait" }, imageType: "image/jpeg", output: "./pdf/generate.pdf", });