Value Investing Case Study Generator

Key Financial Highlights:

${highlights.replace(/\n/g, '
')}

Value Investing Insight: ${name} demonstrates key traits of a value investment, including consistent performance metrics and potential undervaluation based on intrinsic value analysis. This case study highlights the investor's perspective focusing on fundamentals.

`; document.getElementById('caseStudyOutput').innerHTML = content; } window.downloadCaseStudyPDF = function () { const output = document.getElementById('caseStudyOutput'); const button = document.getElementById('downloadPDF'); if (!output.innerHTML.trim()) { alert("Please generate the case study before downloading the PDF."); return; } button.style.display = 'none'; html2canvas(output).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("Value_Investing_Case_Study.pdf"); button.style.display = 'inline-block'; }); } });
Scroll to Top