Current Economic Indicators
Central Bank Policy Adjustments
e.g., +25 for 0.25% hike, -50 for 0.50% cut
e.g., +100 for $100B QE, -50 for $50B QT
e.g., +0.5 for 0.5% increase, -0.2 for 0.2% decrease
Estimated Policy Impact
Original Inflation Rate:
--
Estimated New Inflation Rate:
--
Original GDP Growth:
--
Estimated New GDP Growth:
--
Original Unemployment Rate:
--
Estimated New Unemployment Rate:
--
Original Exchange Rate:
--
Estimated New Exchange Rate:
--
*Note: This report provides an estimated impact based on a simplified economic model. Real-world outcomes are complex and influenced by numerous additional factors not included in this simulation.
`; // Append the hidden div to the body to be rendered by html2canvas document.body.appendChild(pdfContentDiv); html2canvas(pdfContentDiv, { scale: 2, // Increase scale for better resolution logging: false // Disable logging for cleaner console }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const imgWidth = 210; // A4 width in mm const pageHeight = 297; // A4 height in mm const imgHeight = canvas.height * imgWidth / canvas.width; let heightLeft = imgHeight; let position = 0; const pdf = new jsPDF('p', 'mm', 'a4'); pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight); heightLeft -= pageHeight; while (heightLeft >= 0) { position = heightLeft - imgHeight; pdf.addPage(); pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight); heightLeft -= pageHeight; } pdf.save('Central_Bank_Policy_Impact_Report.pdf'); // Remove the hidden div after generating PDF document.body.removeChild(pdfContentDiv); }); }); // Initial tab display showTab('inputs'); });