samsorrahman / Certificate_generator

This will automatically write text on a given certificate template and generate its pdf file

Home Page:https://github.com/saadfareed/Certificate_generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certificate Generator Input Template:

How you make this code feasible for your Template?


1:copy your template of certificate in the same directory where you find Template.jpeg.


2:Make sure you name it Template.jpeg if you don't then you have to change im = Image.open(r'Template.jpg') to im = Image.open(r'name of your template with extension')


3:if you want to change font you have to first download font Download Font from here!


4: Which font do you change if you want to change font used for attendees name you should change fon = ImageFont.truetype("arial.ttf", 60) to fon = ImageFont.truetype("font you want to use", size of font)


5: And if you want to change font used for Signatures you should change fox = ImageFont.truetype("PWSignaturetwo.ttf", 50) to fox = ImageFont.truetype("font you want to use", size of font)


Next Steps are How you Run the code?

Dependencies Installation:

1;install python3 (I am using python 3.7.6)

2;pip install pandas

3:pip install os

4:pip install PIL


Run code:

python Certificate_Generator.py


Certificate Generator Output Result:

About

This will automatically write text on a given certificate template and generate its pdf file

https://github.com/saadfareed/Certificate_generator


Languages

Language:Python 100.0%