jspdf multiple divs rendering empty
hope you are doing well.
I am using jspdf and want to generate content from multiple divs. My javascript is detecting the divs but is rendering the divs empty.
jsPDF issue while open pdf after download
const div3PDF = (e) => { setLoading(true); let input = window.document.getElementsByClassName(“div3PDF”)[0]; html2canvas(input, { scale: 3, // Increase the scale for higher resolution useCORS: true, logging: true, backgroundColor: null // Ensure background is captured correctly }).then((canvas) => { const imgData = canvas.toDataURL(“image/png”, 1.0); // Calculate PDF dimensions with extra space const margin = 20; const pdfWidth […]