SEC-Approved Fund Prospectus Generator

Investment Strategy: ${strategy}

Principal Risks: ${risks}

Fees & Expenses: ${fees}

Fund Manager: ${manager}

`; document.getElementById('prospectusResult').innerHTML = resultHTML; } function downloadProspectusPDF() { const resultElement = document.getElementById('prospectusResult'); if (!resultElement.innerHTML.trim()) { alert("Please generate the prospectus 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("Fund_Prospectus.pdf"); }); }
Scroll to Top