📄 Personal Document & PDF Generator

About This Tool

This is a personal document and PDF generator. Paste any Python script that creates documents using supported libraries, and generate a downloadable file. Supports Word documents, PDFs, and plots.

Supported formats:

📝 Paste Your Python Script

Example Word Document: from docx import Document doc = Document() doc.add_heading('My Custom Document', level=1) doc.add_paragraph('This is a custom paragraph.') Example PDF with FPDF: from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.set_font('Arial', 'B', 16) pdf.cell(40, 10, 'Hello PDF World!') Example Chart/Plot: import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([1, 2, 3, 4], [1, 4, 2, 3]) ax.set_title('Sample Chart')

How to Use

  1. Paste your Python script in the text area above
  2. Make sure your script creates the appropriate variable (doc, pdf, or fig)
  3. Click the "Generate Document" button
  4. Once generated, a download link will appear
  5. Click the download link to save the document to your computer

Important: Your script must create one of these variables: