This Python application generates a PDF invoice from a JSON input using Jinja2 for templating and pdfkit for PDF creation.
-
Install the required Python libraries:
pip install -r requirements.txt
-
You must have
wkhtmltopdf
installed on your system. Refer to https://wkhtmltopdf.org for installation instructions.
To generate an invoice, run:
python generate_invoice.py <path_to_invoice_data.json>
Replace <path_to_invoice_data.json>
with the path to your JSON file containing the invoice data.