# uzairkamalyz/my-pdf architecture

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

- Interactive diagram: https://gitdiagram.com/uzairkamalyz/my-pdf
- Repository: https://github.com/uzairkamalyz/my-pdf

## Overview

Fill & Sign is a browser-only PDF editor and scanner: users open or scan documents, add text and signatures, then export a new PDF. Its product behavior is implemented in index.html; worker/index.js serves the static site and does not process documents. The README documents the major capabilities and external libraries; the sampled worker confirms static-asset forwarding, but the application source itself was not sampled, so internal call relationships are not asserted.

Main entry points: [`index.html`](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html) (Document scanner), [`worker/index.js`](https://github.com/uzairkamalyz/my-pdf/blob/main/worker/index.js) (Static asset worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_documents["Document handling"]
  node_editor["PDF editor<br/>[index.html]"]
  node_pdf_renderer["PDF renderer<br/>[index.html]"]
  node_pdfjs["PDF.js CDN"]
  node_pdf_export["PDF export<br/>[index.html]"]
  node_pdflib["pdf-lib CDN"]
end

subgraph group_editing["Editing tools"]
  node_text_tool["Text placement<br/>[index.html]"]
  node_signature_tool["Signature tool<br/>[index.html]"]
end

subgraph group_scanning["Scanning"]
  node_scanner["Document scanner<br/>[index.html]"]
  node_camera["Device camera"]
  node_scan_adjust["Crop and enhance<br/>[index.html]"]
  node_scan_export["Scan PDF output<br/>[index.html]"]
end

subgraph group_platform["Browser platform"]
  node_signature_store[("Signature storage<br/>[index.html]")]
  node_browser["Browser runtime"]
  node_worker["Static asset worker<br/>[index.js]"]
  node_site_assets["Static site assets<br/>[index.html]"]
end

node_user(("User"))

node_user -->|"opens PDF"| node_editor
node_editor -->|"renders pages"| node_pdf_renderer
node_pdf_renderer -->|"uses"| node_pdfjs
node_user -->|"places text"| node_text_tool
node_user -->|"creates signature"| node_signature_tool
node_signature_tool -->|"remembers signature"| node_signature_store
node_user -->|"scans document"| node_scanner
node_scanner -->|"captures images"| node_camera
node_scanner -->|"offers image adjustment"| node_scan_adjust
node_user -->|"saves scan"| node_scan_export
node_user -->|"opens scan"| node_editor
node_user -->|"downloads PDF"| node_pdf_export
node_pdf_export -->|"writes PDF"| node_pdflib
node_browser -->|"requests site"| node_worker
node_worker -->|"serves assets"| node_site_assets

click node_editor "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_pdf_renderer "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_pdf_export "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_text_tool "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_signature_tool "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_signature_store "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_scanner "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_scan_adjust "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_scan_export "https://github.com/uzairkamalyz/my-pdf/blob/main/index.html"
click node_worker "https://github.com/uzairkamalyz/my-pdf/blob/main/worker/index.js"
click node_site_assets "https://github.com/uzairkamalyz/my-pdf/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_editor,node_pdf_renderer,node_pdfjs,node_pdf_export,node_pdflib,node_user toneBlue
class node_text_tool,node_signature_tool toneAmber
class node_scanner,node_camera,node_scan_adjust,node_scan_export toneMint
class node_signature_store,node_browser,node_worker,node_site_assets toneRose
```

## Components

### Document handling

- [PDF editor](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- [PDF renderer](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- **PDF.js CDN**
- [PDF export](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- **pdf-lib CDN**

### Editing tools

- [Text placement](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- [Signature tool](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`

### Scanning

- [Document scanner](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- **Device camera**
- [Crop and enhance](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- [Scan PDF output](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`

### Browser platform

- [Signature storage](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`
- **Browser runtime**
- [Static asset worker](https://github.com/uzairkamalyz/my-pdf/blob/main/worker/index.js): `worker/index.js`
- [Static site assets](https://github.com/uzairkamalyz/my-pdf/blob/main/index.html): `index.html`

### Other components

- **User**

## Connections

- User → PDF editor: opens PDF (evidence: `README.md`)
- PDF editor → PDF renderer: renders pages (evidence: `README.md`)
- PDF renderer → PDF.js CDN: uses (evidence: `README.md`)
- User → Text placement: places text (evidence: `README.md`)
- User → Signature tool: creates signature (evidence: `README.md`)
- Signature tool → Signature storage: remembers signature (evidence: `README.md`)
- User → Document scanner: scans document (evidence: `README.md`)
- Document scanner → Device camera: captures images (evidence: `README.md`)
- Document scanner → Crop and enhance: offers image adjustment (evidence: `README.md`)
- User → Scan PDF output: saves scan (evidence: `README.md`)
- User → PDF editor: opens scan (evidence: `README.md`)
- User → PDF export: downloads PDF (evidence: `README.md`)
- PDF export → pdf-lib CDN: writes PDF (evidence: `README.md`)
- Browser runtime → Static asset worker: requests site (evidence: `worker/index.js`)
- Static asset worker → Static site assets: serves assets (evidence: `worker/index.js`)
