# revanthreddyabbati/pdfeditor architecture

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

- Interactive diagram: https://gitdiagram.com/revanthreddyabbati/pdfeditor
- Repository: https://github.com/revanthreddyabbati/pdfeditor

## Overview

Folio PDF is a private, browser-based PDF editor: users open the editor, work with locally rendered PDFs and editing tools, then export the result. The README documents PDF rendering and writing, editing and page operations, locally saved signatures and autosave, and bundled-font support. Feature-level implementation is attributed to app.js as documented; source excerpts were unavailable, so relationships are limited to those stated in the README.

Main entry points: [`assets/js/app.js`](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js) (Editor runtime), [`app.html`](https://github.com/revanthreddyabbati/pdfeditor/blob/main/app.html) (Editor interface), [`assets/js/export.js`](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/export.js) (PDF export), [`assets/js/fonts.js`](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/fonts.js) (Font registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_landing["Landing page<br/>[index.html]"]
  node_editor["Editor interface<br/>[app.html]"]
end

subgraph group_editing["PDF editing"]
  node_editor_runtime["Editor runtime<br/>[app.js]"]
  node_pdf_render["PDF rendering<br/>[app.js]"]
  node_text_edit["Text editing<br/>[app.js]"]
  node_annotations["Annotations<br/>[app.js]"]
  node_images["Image insertion<br/>[app.js]"]
  node_page_ops["Page operations<br/>[app.js]"]
  node_pdf_merge_split["Merge and split<br/>[app.js]"]
  node_signatures["eSignatures<br/>[app.js]"]
  node_pdfjs["pdf.js"]
end

subgraph group_output["Export and fonts"]
  node_export["PDF export<br/>[export.js]"]
  node_pdflib["pdf-lib"]
  node_font_registry["Font registry<br/>[fonts.js]"]
  node_bundled_fonts["Bundled fonts"]
end

subgraph group_persistence["Local persistence"]
  node_autosave["Autosave store<br/>[store.js]"]
  node_indexeddb[("IndexedDB")]
end

node_user(("User"))

node_user -->|"opens"| node_landing
node_user -->|"opens"| node_editor
node_editor -->|"hosts"| node_editor_runtime
node_editor_runtime -->|"renders with"| node_pdf_render
node_pdf_render -->|"uses"| node_pdfjs
node_editor_runtime -->|"offers"| node_text_edit
node_editor_runtime -->|"offers"| node_annotations
node_editor_runtime -->|"offers"| node_images
node_editor_runtime -->|"offers"| node_page_ops
node_editor_runtime -->|"offers"| node_pdf_merge_split
node_editor_runtime -->|"offers"| node_signatures
node_editor_runtime -->|"exports through"| node_export
node_export -->|"writes with"| node_pdflib
node_editor_runtime -->|"uses"| node_font_registry
node_font_registry -->|"registers"| node_bundled_fonts
node_editor_runtime -->|"autosaves through"| node_autosave
node_autosave -->|"stores in"| node_indexeddb

click node_landing "https://github.com/revanthreddyabbati/pdfeditor/blob/main/index.html"
click node_editor "https://github.com/revanthreddyabbati/pdfeditor/blob/main/app.html"
click node_editor_runtime "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_pdf_render "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_text_edit "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_annotations "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_images "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_page_ops "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_pdf_merge_split "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_signatures "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js"
click node_export "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/export.js"
click node_font_registry "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/fonts.js"
click node_bundled_fonts "https://github.com/revanthreddyabbati/pdfeditor/tree/main/assets/fonts"
click node_autosave "https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/store.js"

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_landing,node_editor,node_user toneBlue
class node_editor_runtime,node_pdf_render,node_text_edit,node_annotations,node_images,node_page_ops,node_pdf_merge_split,node_signatures,node_pdfjs toneAmber
class node_export,node_pdflib,node_font_registry,node_bundled_fonts toneMint
class node_autosave,node_indexeddb toneRose
```

## Components

### Entry points

- [Landing page](https://github.com/revanthreddyabbati/pdfeditor/blob/main/index.html): `index.html`
- [Editor interface](https://github.com/revanthreddyabbati/pdfeditor/blob/main/app.html): `app.html`

### PDF editing

- [Editor runtime](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [PDF rendering](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [Text editing](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [Annotations](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [Image insertion](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [Page operations](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [Merge and split](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- [eSignatures](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/app.js): `assets/js/app.js`
- **pdf.js**

### Export and fonts

- [PDF export](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/export.js): `assets/js/export.js`
- **pdf-lib**
- [Font registry](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/fonts.js): `assets/js/fonts.js`
- [Bundled fonts](https://github.com/revanthreddyabbati/pdfeditor/tree/main/assets/fonts): `assets/fonts`

### Local persistence

- [Autosave store](https://github.com/revanthreddyabbati/pdfeditor/blob/main/assets/js/store.js): `assets/js/store.js`
- **IndexedDB**

### Other components

- **User**

## Connections

- User → Landing page: opens (evidence: `README.md`)
- User → Editor interface: opens (evidence: `README.md`)
- Editor interface → Editor runtime: hosts (evidence: `README.md`)
- Editor runtime → PDF rendering: renders with (evidence: `README.md`)
- PDF rendering → pdf.js: uses (evidence: `README.md`)
- Editor runtime → Text editing: offers (evidence: `README.md`)
- Editor runtime → Annotations: offers (evidence: `README.md`)
- Editor runtime → Image insertion: offers (evidence: `README.md`)
- Editor runtime → Page operations: offers (evidence: `README.md`)
- Editor runtime → Merge and split: offers (evidence: `README.md`)
- Editor runtime → eSignatures: offers (evidence: `README.md`)
- Editor runtime → PDF export: exports through (evidence: `README.md`)
- PDF export → pdf-lib: writes with (evidence: `README.md`)
- Editor runtime → Font registry: uses (evidence: `README.md`)
- Font registry → Bundled fonts: registers (evidence: `README.md`)
- Editor runtime → Autosave store: autosaves through (evidence: `README.md`)
- Autosave store → IndexedDB: stores in (evidence: `README.md`)
