Untitled

Anonymous
Plain Text
10/24/2025 5:41 AM
2.3 KB
15
Indexable
Never
from fpdf import FPDF

Create PDF

file_path = '/mnt/data/Mixed_Portfolio_50000_to_1Lakh_Simple.pdf' pdf = FPDF() pdf.set_auto_page_break(auto=True, margin=15) pdf.add_page() pdf.set_font('Arial', 'B', 16)

Title

pdf.multi_cell(0, 10, '₹50,000 to ₹1,00,000 in 1 Year - Mixed Portfolio Plan', align='C') pdf.ln(5) pdf.set_font('Arial', '', 12)

Overview

overview = ( "Goal: Double ₹50,000 within 12 months using a medium-risk, passive investment strategy.\n" "Profile: Moderate risk tolerance, passive SIP investing.\n" "Expected Return: 70–100% (depending on market performance)." ) pdf.multi_cell(0, 8, overview) pdf.ln(5)

Portfolio Table

portfolio = [ ['Asset Type', 'Example Investment', 'Allocation', 'Expected Return', 'Risk Level'], ['Small Cap Fund', 'Quant Small Cap Fund (Direct-Growth)', '₹15,000', '35–70%', 'Medium-High'], ['Thematic Fund', 'HDFC Defence / ICICI Infra Fund', '₹10,000', '30–60%', 'Medium-High'], ['Flexi Cap Fund', 'Parag Parikh Flexi Cap Fund', '₹10,000', '20–35%', 'Medium'], ['Gold Fund / ETF', 'Nippon Gold ETF / SBI Gold Fund', '₹7,500', '15–25%', 'Low-Medium'], ['Digital Gold / SGB', 'MMTC-PAMP / RBI SGB', '₹5,000', '15–20%', 'Low'], ['Crypto / Midcap ETF (optional)', 'Bitcoin / Motilal Midcap 150 ETF', '₹2,500', '0–200%', 'High'] ]

for row in portfolio: pdf.multi_cell(0, 8, ' | '.join(row)) pdf.ln(1)

pdf.ln(5)

SIP Schedule

pdf.set_font('Arial', 'B', 14) pdf.multi_cell(0, 8, 'SIP Schedule (Example Start: November 2025)') pdf.set_font('Arial', '', 12)

sip_schedule = [ ['Nov 2025', '₹4,000', 'Start SIPs in Quant Small Cap + Parag Parikh'], ['Dec 2025', '₹4,000', 'Continue SIP + Add Gold Fund'], ['Jan-Mar 2026', '₹12,000', 'Add HDFC Defence Fund SIP'], ['Apr-Jul 2026', '₹16,000', 'Continue all SIPs'], ['Aug-Oct 2026', '₹14,000', 'Top up best-performing fund'] ]

for row in sip_schedule: pdf.multi_cell(0, 8, ' | '.join(row)) pdf.ln(1)

pdf.ln(5)

Expected Returns

expected_returns = ( "Expected 1-Year Outcome:\n" "• Bull Market: ₹95,000 – ₹1,10,000\n" "• Normal Market: ₹75,000 – ₹90,000\n" "• Bear Market: ₹55,000 – ₹65,000\n" "Platforms: Groww, Zerodha Coin, Kuvera, Paytm Money\n" "Tip: Choose 'Direct-Growth' funds for maximum returns and lower expense ratio." ) pdf.multi_cell(0, 8, expected_returns)

pdf.output(file_path) file_path
Editor is loading...
Leave a Comment