This project was built to enable PDF generation from a Python dictionary. Currently, there are 2 different templates that can be generated from 2 hardcoded dictionaries.
- Python 3.9.4
- Django 3.2.4
- WeasyPrint 52.5
- Pygal 2.4.0
- run
pip3 install -r requirements.txt
to install necessary packages - run
python manage.py runserver 8080
to start the app on port 8080 - go to
http://localhost:8080/
where you will see theindex.html
page - click on the appropriate button to generate a chosen PDF template
- PDF files are saved under
/pdf
directory
Templates were based on examples mentioned in the spec below, however, there might be slight changes due the lack of some data in the dictionaries or charts library limitations. https://docs.google.com/document/d/1TvC4tBhagMxqcWELHwKiSPQznG2fdhSYwchce0pwXRQ/edit#