Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Certificate Generator

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.


Features

  • Replace placeholder myname in 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.

Requirements

Python

  • Python 3.x
  • csv and os modules (built-in)

Node.js

  • Node.js v20 or later
  • npm install

Usage

  • 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.csv file 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)

About

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.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages