Private Market Co-Investment Strategy Builder

Construct a detailed co-investment strategy document step-by-step.

Investment Thesis & Objectives

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

`; }; window.downloadPDF = async () => { const { jsPDF } = window.jspdf; const content = document.getElementById('pdf-content'); // Use html2canvas to render the div to a canvas with improved resolution const canvas = await html2canvas(content, { scale: 2, // Higher scale for better quality backgroundColor: '#ffffff' }); const imgData = canvas.toDataURL('image/png'); // A4 dimensions in points: 595.28 x 841.89 const pdfWidth = 595.28; const pdfHeight = (canvas.height * pdfWidth) / canvas.width; const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: [pdfWidth, pdfHeight] }); pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight); pdf.save(`Co-Investment_Strategy_${new Date().toISOString().slice(0,10)}.pdf`); }; // --- Initial State Setup --- switchTab(1); });
Scroll to Top