Welcome to the Certificate Generator repository! This project automates the creation of personalized certificates in PDF format using a PowerPoint template. With a single script, you can quickly generate certificates for multiple recipients, ensuring consistent design and format.
- Automatically replaces placeholders with recipient names while preserving the text style and formatting.
- Generates certificates for all names listed in a text file.
- Saves the certificates as PDFs, ready for distribution.
- Ensures the output directory exists, creating it if necessary.
-
Clone the repository to your local machine:
git clone https://github.com/Anuswar/certificate-generator.git cd certificate-generator
-
Set up the environment:
- Ensure you have Python installed.
- Install the necessary Python packages:
pip install python-pptx comtypes
-
Prepare your files:
- Place your
certificate_template.pptx
PowerPoint template in the repository directory. - Create a
names.txt
file with each recipient's name on a new line.
- Place your
-
Run the script:
python certificate-generator.py
The repository includes the following files:
certificate-generator/
├── generate_certificates.py # Script to generate certificates
├── certificate_template.pptx # PowerPoint template for the certificates
├── names.txt # List of recipient names
├── README.md # This README file
├── LICENSE.md # License for the repository
This repository utilizes the following technologies and tools:
- Python: The main scripting language used for generating certificates.
- python-pptx: A Python library for creating and updating PowerPoint files.
- comtypes: A Python library to interface with COM objects, used here for converting PPTX files to PDFs.
- PowerPoint: Used as the template base for certificates.
- PDF: The final output format for the certificates, ensuring easy distribution and printing.
Contributions are welcome! If you find any issues, have suggestions, or want to add features, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Open a pull request to the
main
branch of the original repository.
This project is licensed under the MIT License, allowing you to use, modify, and distribute the code freely.