This project generates a PDF file containing custom ID cards for employees. Each ID card includes the employee's photo, name, and title, overlayed on a pre-defined ID template.
- Python 3
- Pillow (PIL Fork)
- ReportLab
To install the required Python packages, run:
pip install pillow reportlab
ute_id_template.png
: A pre-defined ID template image (PNG format).Book - Copy - Copy(Sheet1).csv
: A CSV file containing employee details with the columns:Name
,Title
,Location
, andID
.Images
: A file containing all employee ID photos referenced in the CSV file.
- Place the
ute_id_template.png
,Book - Copy - Copy(Sheet1).csv
, andImages
in the same directory as the script. - Run the script with:
python idGenerator.py
- The script will generate a PDF named
employee_id_cards.pdf
in the current directory with the ID cards for all employees listed in the CSV file.
- You can modify the font size and path by changing the
font_size
andfont_path
variables in the script. - The positions for photo and text placement can also be adjusted to fit the ID template.