Peer-to-Peer (P2P) Lending Risk Analyzer
Assess various risk factors for your P2P lending investments.
Investment Information
Risk Categories & Assessment
1. Borrower & Loan Specific Risks (Credit Risk)
2. Platform & Portfolio Specific Risks
P2P Risk Assessment Summary
Analyzed Investment:
N/A
Calculated Risk Score:
0
Overall Risk Level:
N/A
Key Contributing Risk Factors:
- No significant risk factors highlighted.
*Risk scores are indicative and derived from your selections. Higher scores indicate greater risk.
*Risk scores are indicative and derived from your selections. Higher scores indicate greater risk.
This assessment provides a qualitative overview and should be supplemented with detailed due diligence and consideration of specific platform terms.
`; tempPdfContent.innerHTML = pdfHtml; document.body.appendChild(tempPdfContent); // Append to body for rendering context html2canvas(tempPdfContent, { scale: 2, useCORS: true, logging: false }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const { jsPDF } = window.jspdf; const pdf = new jsPDF('p', 'mm', 'a4'); // 'p' for portrait, 'mm' for millimeters, 'a4' size 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; 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("P2P_Lending_Risk_Report.pdf"); document.body.removeChild(tempPdfContent); // Clean up the temporary div }).catch(error => { console.error("Error generating PDF:", error); }); }; // Initial risk analysis on load for default values analyzeP2PRisk(); });