# rotott/diplomagen architecture

> Architecture diagram of the GitHub repository rotott/diplomagen, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rotott/diplomagen
- Repository: https://github.com/rotott/diplomagen

## Overview

DiplomaGen is a small Java application that creates an editable Word diploma. The documented workflow is: a user runs the generator, which uses Apache POI to create a DOCX, embed a PNG, and add formatted text and blank fields before saving Diploma.docx in the project root. The README documents these relationships; no source excerpts were provided, so implementation details beyond that description are not represented.

Main entry points: [`src/main/java/org/example/DiplomaGenerator.java`](https://github.com/rotott/diplomagen/blob/main/src/main/java/org/example/DiplomaGenerator.java) (Diploma Generator), [`src/main/java/org/example`](https://github.com/rotott/diplomagen/tree/main/src/main/java/org/example) (PNG Image), [`Diploma.docx`](https://github.com/rotott/diplomagen/blob/main/Diploma.docx) (Diploma DOCX)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_generator["Diploma Generator"]
node_poi["Apache POI"]
node_png["PNG Image"]
node_diploma["Diploma DOCX<br/>[Diploma.docx]"]

node_user -->|"runs"| node_generator
node_generator -->|"creates document"| node_poi
node_generator -->|"embeds image"| node_png
node_generator -->|"saves output"| node_diploma

click node_generator "https://github.com/rotott/diplomagen/blob/main/src/main/java/org/example/DiplomaGenerator.java"
click node_png "https://github.com/rotott/diplomagen/tree/main/src/main/java/org/example"
click node_diploma "https://github.com/rotott/diplomagen/blob/main/Diploma.docx"

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_user toneBlue
class node_generator,node_png,node_diploma toneTeal
class node_poi toneIndigo
```

## Components

### Other components

- **User**
- [Diploma Generator](https://github.com/rotott/diplomagen/blob/main/src/main/java/org/example/DiplomaGenerator.java): `src/main/java/org/example/DiplomaGenerator.java`
- **Apache POI**
- [PNG Image](https://github.com/rotott/diplomagen/tree/main/src/main/java/org/example): `src/main/java/org/example`
- [Diploma DOCX](https://github.com/rotott/diplomagen/blob/main/Diploma.docx): `Diploma.docx`

## Connections

- User → Diploma Generator: runs (evidence: `README.md`)
- Diploma Generator → Apache POI: creates document (evidence: `README.md`)
- Diploma Generator → PNG Image: embeds image (evidence: `README.md`)
- Diploma Generator → Diploma DOCX: saves output (evidence: `README.md`)
