# adityagitorbit/pdf_tool_box architecture

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

- Interactive diagram: https://gitdiagram.com/adityagitorbit/pdf_tool_box
- Repository: https://github.com/adityagitorbit/pdf_tool_box

## Overview

PDF Toolbox is a single-page, browser-only utility whose main workflows turn selected images into one PDF or merge selected PDFs, then provide the result locally. The shared file-list behavior supports browsing, drag-and-drop, and reordering; memory estimates and live checks guard processing. The README documents use of pdf-lib and jsPDF from a CDN and OS-aware theming. Since no source excerpts were provided, relationships below rely only on README statements; implementation details beyond those are omitted.

Main entry points: [`index.html`](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html) (PDF Toolbox)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_tool["PDF Toolbox<br/>[index.html]"]
node_file_lists["File lists<br/>[index.html]"]
node_image_pdf["Images to PDF<br/>[index.html]"]
node_merge_pdfs["Merge PDFs<br/>[index.html]"]
node_memory_guard["Memory guard<br/>[index.html]"]
node_pdf_lib["pdf-lib"]
node_jspdf["jsPDF"]
node_browser["Browser"]

node_visitor -->|"uses"| node_tool
node_tool -->|"sets up"| node_file_lists
node_file_lists -->|"supplies images"| node_image_pdf
node_file_lists -->|"supplies PDFs"| node_merge_pdfs
node_tool -->|"runs conversion"| node_image_pdf
node_tool -->|"runs merge"| node_merge_pdfs
node_image_pdf -->|"uses"| node_jspdf
node_merge_pdfs -->|"uses"| node_pdf_lib
node_tool -->|"checks budget"| node_memory_guard
node_memory_guard -->|"reads device memory"| node_browser
node_image_pdf -->|"runs locally"| node_browser
node_merge_pdfs -->|"runs locally"| node_browser

click node_tool "https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html"
click node_file_lists "https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html"
click node_image_pdf "https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html"
click node_merge_pdfs "https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html"
click node_memory_guard "https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.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_visitor,node_pdf_lib,node_jspdf toneIndigo
class node_tool,node_file_lists,node_image_pdf,node_merge_pdfs,node_memory_guard toneTeal
class node_browser toneBlue
```

## Components

### Other components

- **Visitor**
- [PDF Toolbox](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html): `index.html`
- [File lists](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html): `index.html`
- [Images to PDF](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html): `index.html`
- [Merge PDFs](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html): `index.html`
- [Memory guard](https://github.com/adityagitorbit/pdf_tool_box/blob/main/index.html): `index.html`
- **pdf-lib**
- **jsPDF**
- **Browser**

## Connections

- Visitor → PDF Toolbox: uses (evidence: `README.md`)
- PDF Toolbox → File lists: sets up (evidence: `README.md`)
- File lists → Images to PDF: supplies images (evidence: `README.md`)
- File lists → Merge PDFs: supplies PDFs (evidence: `README.md`)
- PDF Toolbox → Images to PDF: runs conversion (evidence: `README.md`)
- PDF Toolbox → Merge PDFs: runs merge (evidence: `README.md`)
- Images to PDF → jsPDF: uses (evidence: `README.md`)
- Merge PDFs → pdf-lib: uses (evidence: `README.md`)
- PDF Toolbox → Memory guard: checks budget (evidence: `README.md`)
- Memory guard → Browser: reads device memory (evidence: `README.md`)
- Images to PDF → Browser: runs locally (evidence: `README.md`)
- Merge PDFs → Browser: runs locally (evidence: `README.md`)
