GDPR Compliance for Financial Transactions

Compliance Status: ${compliance}

Notes:

    ${notes.map(n => `
  • ${n}
  • `).join('')}
`; document.getElementById('gdprResult').innerHTML = result; }; window.downloadGDPRPDF = function () { const resultElement = document.getElementById('gdprResult'); if (!resultElement.innerHTML.trim()) { alert("Please check compliance before downloading the report."); return; } html2canvas(resultElement).then(canvas => { const imgData = canvas.toDataURL('image/png'); const { jsPDF } = window.jspdf; const pdf = new jsPDF(); const imgProps = pdf.getImageProperties(imgData); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width; pdf.addImage(imgData, 'PNG', 0, 10, pdfWidth, pdfHeight); pdf.save("GDPR_Compliance_Report.pdf"); }); } });
Scroll to Top