This project is a Python-based PDF certificate generator that automates the process of creating personalized certificates for a list of names. It uses reportlab
to handle PDF creation and PyPDF2
for merging generated content with a predefined PDF template.
- Generates personalized certificates.
- Merges personalized text onto a predefined PDF template.
- Outputs certificates as PDF files in a specified directory.
Before you can run this script, you will need Python installed on your system along with the following Python libraries:
- reportlab
- PyPDF2
Here are the Terminal Steps:
1. python -m venv venv
2. source venv/bin/activate # On Windows use `venv\Scripts\activate`
3. pip install reportlab PyPDF2
4. python3 pdfgen.py
To use the PDF-Generator, follow these steps:
Clone the repository:
git clone https://github.com/yourusername/PDF-Generator.git
Navigate to the cloned directory:
cd PDF-Generator
Run the script:
python PDFGEN.py
The script will generate PDFs and save them to the /OUTPUT directory.
Setting Your Own Template To use your own PDF template:
Place your PDF template file into the project directory. Modify the template_pdf_path in the PDFGEN.py script to point to your template file. For example:
template_pdf_path = '/path/to/your/template.pdf'
You can customize the names by modifying the names list in PDFGEN.py.
Example of names list:
names = [ "Bob Marley", "William Misiaszek", "Bob Dylan", ]