Works with python 3.x
Steps to run
- Install pygame and Pillow using -
foo@bar:~$ pip install pygame
foo@bar:~$ pip install Pillow
- There are 2 files which you have to make, one is the csv file which contains all the entries, and second is an image of the certificate.
The sample files are
test.csv
andcertificate.jpg
- Use any name for the csv, but keep the name of the jpeg as certificate.jpg
- Run the
generator.py
file using -
foo@bar:~$ python generator.py
- Enter the name of the file, the event name and the year when prompted
- Once the new file is generated, a window will open in your screen, which will display your certificate.
- Drag the text fields to wherever you would like to place them
- Once the fields are set, press enter. The program will automatically close when all certificates are generated.
- See the generated certificates in the 'certificates' folder. Each certificate will be named after the roll number of the receipient.
The first two columns of the csv should be the roll number and the name. That is mandatory