Giter VIP home page Giter VIP logo

certificate_generator's Introduction

Certificate Generator

This Python script generates certificates for a list of names provided in the Data.xlsx Excel file. Each certificate includes the participant's name, a unique certificate ID, and the title "Certificate of Participation". The generated certificates are saved as PDF files in the certificates directory.

Prerequisites

Before running the script, ensure you have the following installed:

  • Python 3.x
  • Pillow library (PIL) for image processing: Install using pip install Pillow
  • Pandas library for reading data from Excel: Install using pip install pandas

Usage

  1. Prepare your data:

    • Create an Excel file named Data.xlsx with a column named name containing the names of the participants.
  2. Prepare your certificate template:

    • Ensure your certificate template is in a supported image format (e.g., PNG, JPEG).
    • Name the template image file cert.png and place it in the same directory as the script.
  3. Prepare your font files:

    • Choose TrueType font (TTF) files for text and titles on the certificates.
    • Name the text font file BRUSHSCI.TTF and the title font file kepler_std_bold_semicondensed_subhead.otf.
    • Place the font files in a fonts directory in the same location as the script.
  4. Run the script:

    • Open a terminal or command prompt and navigate to the directory containing the script.
    • Run the script by executing python script_name.py (replace script_name.py with the actual name of your Python script).
  5. Generated Certificates:

    • The generated certificates will be saved as PDF files in the certificates directory.

Notes

  • Ensure the font size and location settings in the script (font_size, location) are appropriate for your certificate template.
  • Verify the color settings (text_color) for proper visibility against the certificate background.
  • Each certificate includes a unique certificate ID.
  • Test the script with a small set of names first to ensure the certificates are generated as expected.

certificate_generator's People

Contributors

swarnendu0123 avatar westerandr avatar

Stargazers

GS avatar Piyush K. Das avatar  avatar Clayton Kehoe avatar

Watchers

 avatar

certificate_generator's Issues

Required libraries

Wouldn't it be cleaner to use a requirements file than to tell folks to install PIL? That would allow for easier installation of multiple libraries, if needed, in the future.

Edit Certificate Title

Is there an option to edit the certificate title of the template?

This is so we can name the certificate anything we want.

Can you assign this issue to me please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.