Skip to content

Just a simple tool to generate invoice in PDF format.😊😊😊😊😊😍😍😘

License

Notifications You must be signed in to change notification settings

brianmeja/PDFInvoiceGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PDF Invoice Generator

Generate custom PDF invoices with a logo, table, and QR code using Python.

Features

  • Add your own logo (or use a placeholder)
  • Customizable invoice table
  • QR code for payment (any string or link)

Setup

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the example:

    python pdf_invoice_generator.py

    This will generate invoice_example.pdf in the current directory.

Custom Usage

You can import and use generate_invoice in your own scripts, or modify the example at the bottom of pdf_invoice_generator.py:

from pdf_invoice_generator import generate_invoice

generate_invoice(
    output_path="my_invoice.pdf",
    logo_path="path/to/logo.png",  # Set to None for placeholder
    qr_data="https://your-payment-link.com",
    invoice_items=[
        ["Item", "Description", "Quantity", "Unit Price", "Total"],
        ["001", "Service X", "3", "$50.00", "$150.00"],
        ["", "", "", "Total", "$150.00"]
    ],
    company_name="My Company",
    customer_name="Client Name",
    customer_address="123 Main St, City, Country"
)

Notes

  • The QR code can encode any string (e.g., payment link, bank details, etc.).
  • The logo should be a PNG or JPG file. If not provided, a placeholder is used.

About

Just a simple tool to generate invoice in PDF format.😊😊😊😊😊😍😍😘

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages