Skip to content

szmenpro/pdf-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF generator

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.

Tech stack

  • Python 3.9.4
  • Django 3.2.4
  • WeasyPrint 52.5
  • Pygal 2.4.0

Quick start

  • 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 the index.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#

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 42.6%
  • HTML 40.2%
  • CSS 17.2%