Investment Risk Disclosure Generator

Risk Factors:

    `; risks.forEach(risk => { output += `
  • ${risk}
  • `; }); output += `
`; document.getElementById('disclosureResult').innerHTML = output; } window.downloadDisclosurePDF = function () { const resultElement = document.getElementById('disclosureResult'); const button = document.getElementById('downloadPDF'); if (!resultElement.innerHTML.trim()) { alert("Please generate the disclosure before downloading the PDF."); return; } button.style.display = 'none'; html2canvas(resultElement).then(canvas => { const imgData = canvas.toDataURL('image/png'); const { jsPDF } = window.jspdf; const pdf = new jsPDF(); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 0, 10, pdfWidth, pdfHeight); pdf.save("Investment_Risk_Disclosure.pdf"); button.style.display = 'inline-block'; }); } });
Scroll to Top