This project allows you to generate personalized certificates in PDF format from a CSV file of names and an SVG template. The workflow uses Python to generate SVGs and Node.js with Puppeteer to convert SVGs to A4 landscape PDFs.
- Replace placeholder
mynamein an SVG template with names from a CSV file. - Automatically generate high-quality PDFs for each name.
- Maintains system fonts used in the SVG template.
- PDF output is A4 size in landscape orientation.
- PDF metadata (
title) is set to the recipient's name.
- Python 3.x
csvandosmodules (built-in)
- Node.js v20 or later
-
npm install
- Use Canva or Adobe Illustrator to generate the Certificate Template in .svg format
- Add a text placeholder "myname" in the template
- Save the names in a
names.csvfile which will be used to replace the placeholder - Use
python script.py( To generate the SVG files) - Use
node svg-to-pdf.js(To generate the PDF files)