# siddeshkhandekar/bulk-certificate-generator architecture

> Architecture diagram of the GitHub repository siddeshkhandekar/bulk-certificate-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/siddeshkhandekar/bulk-certificate-generator
- Repository: https://github.com/siddeshkhandekar/bulk-certificate-generator

## Overview

This small Python utility generates one PDF certificate per CSV row: it reads participant and organization names, measures the certificate template, scales and positions text, then saves the rendered certificates. The principal workflow is visible in the sampled generator script. The repository contains several script variants with different settings; this map describes the root `bulk_certificate_generator.py` variant. The README documents the intended inputs and smart scaling, but the referenced template and font are not present in the file tree.

Main entry points: [`bulk_certificate_generator.py`](https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/bulk_certificate_generator.py) (Certificate Generator), [`Students.csv`](https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/Students.csv) (Participant CSV), [`Generated certificates`](https://github.com/siddeshkhandekar/bulk-certificate-generator/tree/main/Generated%20certificates) (Generated PDFs)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_csv["Participant CSV<br/>[Students.csv]"]
node_template["Certificate Template"]
node_generator["Certificate Generator"]
node_render["Text Rendering"]
node_pdfs[("Generated PDFs")]

node_operator -->|"runs"| node_generator
node_csv -->|"loads rows"| node_generator
node_template -->|"reads dimensions"| node_generator
node_generator -->|"draws names"| node_render
node_template -->|"provides image"| node_render
node_render -->|"saves PDFs"| node_pdfs

click node_csv "https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/Students.csv"
click node_generator "https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/bulk_certificate_generator.py"
click node_render "https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/bulk_certificate_generator.py"
click node_pdfs "https://github.com/siddeshkhandekar/bulk-certificate-generator/tree/main/Generated%20certificates"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_operator,node_template toneIndigo
class node_csv,node_generator,node_render toneTeal
class node_pdfs toneAmber
```

## Components

### Other components

- **Operator**
- [Participant CSV](https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/Students.csv): `Students.csv`
- **Certificate Template**
- [Certificate Generator](https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/bulk_certificate_generator.py): `bulk_certificate_generator.py`
- [Text Rendering](https://github.com/siddeshkhandekar/bulk-certificate-generator/blob/main/bulk_certificate_generator.py): `bulk_certificate_generator.py`
- [Generated PDFs](https://github.com/siddeshkhandekar/bulk-certificate-generator/tree/main/Generated%20certificates): `Generated certificates`

## Connections

- Operator → Certificate Generator: runs (evidence: `README.md`)
- Participant CSV → Certificate Generator: loads rows (evidence: `bulk_certificate_generator.py`)
- Certificate Template → Certificate Generator: reads dimensions (evidence: `bulk_certificate_generator.py`)
- Certificate Generator → Text Rendering: draws names (evidence: `bulk_certificate_generator.py`)
- Certificate Template → Text Rendering: provides image (evidence: `bulk_certificate_generator.py`)
- Text Rendering → Generated PDFs: saves PDFs (evidence: `bulk_certificate_generator.py`)
