# jeffynasharon/pdfweb architecture

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

- Interactive diagram: https://gitdiagram.com/jeffynasharon/pdfweb
- Repository: https://github.com/jeffynasharon/pdfweb

## Overview

PDF Web Tool is a Spring Boot web application for uploading and processing PDFs. Its documented user-facing capabilities are merging, splitting, compressing, and resizing PDFs. The README establishes a browser-based workflow but does not describe controller routes or internal calls, and no source excerpts were provided; those internal relationships are therefore shown as unverified rather than asserted. Template nodes reflect the available page files, not confirmed controller-to-template mappings.

Main entry points: [`src/main/java/com/example/pdfweb/HomeController.java`](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/HomeController.java) (Home controller), [`src/main/java/com/example/pdfweb/PdfwebApplication.java`](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/PdfwebApplication.java) (Spring Boot app), [`src/main/resources/templates/split.html`](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/split.html) (Split PDF), [`src/main/resources/templates/compress.html`](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/compress.html) (Compress PDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Spring Boot app"]
  node_controller["Home controller"]
end

subgraph group_pdf["PDF operations"]
  node_merge["Merge PDFs"]
  node_split["Split PDF<br/>[split.html]"]
  node_compress["Compress PDF<br/>[compress.html]"]
  node_resize["Resize PDF<br/>[resize.html]"]
end

subgraph group_views["Web views"]
  node_homeview["Home page<br/>[index.html]"]
  node_resultview["Result page<br/>[result.html]"]
  node_splitresult["Split results<br/>[splitResult.html]"]
end

node_user(("PDF user"))

node_user -->|"uploads PDFs"| node_app
node_app -.->|"dispatches requests"| node_controller
node_controller -.->|"handles merging"| node_merge
node_controller -.->|"handles splitting"| node_split
node_controller -.->|"handles compression"| node_compress
node_controller -.->|"handles resizing"| node_resize
node_controller -.->|"renders page"| node_homeview
node_controller -.->|"renders results"| node_resultview
node_controller -.->|"renders results"| node_splitresult

click node_app "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/PdfwebApplication.java"
click node_controller "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/HomeController.java"
click node_split "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/split.html"
click node_compress "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/compress.html"
click node_resize "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/resize.html"
click node_homeview "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/index.html"
click node_resultview "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/result.html"
click node_splitresult "https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/splitResult.html"

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_app,node_controller,node_user toneBlue
class node_merge,node_split,node_compress,node_resize toneAmber
class node_homeview,node_resultview,node_splitresult toneMint
```

## Components

### Web application

- [Spring Boot app](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/PdfwebApplication.java): `src/main/java/com/example/pdfweb/PdfwebApplication.java`
- [Home controller](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/java/com/example/pdfweb/HomeController.java): `src/main/java/com/example/pdfweb/HomeController.java`

### PDF operations

- **Merge PDFs**
- [Split PDF](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/split.html): `src/main/resources/templates/split.html`
- [Compress PDF](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/compress.html): `src/main/resources/templates/compress.html`
- [Resize PDF](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/resize.html): `src/main/resources/templates/resize.html`

### Web views

- [Home page](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/index.html): `src/main/resources/templates/index.html`
- [Result page](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/result.html): `src/main/resources/templates/result.html`
- [Split results](https://github.com/jeffynasharon/pdfweb/blob/main/src/main/resources/templates/splitResult.html): `src/main/resources/templates/splitResult.html`

### Other components

- **PDF user**

## Connections

- PDF user → Spring Boot app: uploads PDFs (evidence: `README.md`)
- Spring Boot app → Home controller: dispatches requests
- Home controller → Merge PDFs: handles merging
- Home controller → Split PDF: handles splitting
- Home controller → Compress PDF: handles compression
- Home controller → Resize PDF: handles resizing
- Home controller → Home page: renders page
- Home controller → Result page: renders results
- Home controller → Split results: renders results
