# stackoverflowed20-stack/verticepdf architecture

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

- Interactive diagram: https://gitdiagram.com/stackoverflowed20-stack/verticepdf
- Repository: https://github.com/stackoverflowed20-stack/verticepdf

## Overview

Vértice PDF is a Windows desktop PDF editor. The principal workflow is to open or create a document, work in the tabbed viewer, apply editing or document operations, then save, export, or print the result. The graph also preserves documented capabilities whose implementation was not sampled, such as OCR, forms, batch tools, and protection. Edges use README statements or SOURCE INDEX references; unsampled feature internals and their finer call paths are not asserted.

Main entry points: [`viewer.py`](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/viewer.py) (Tabbed PDF viewer), [`main.py`](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/main.py) (Application shell), [`ops.py`](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/ops.py) (PDF operations), [`printing.py`](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/printing.py) (Print preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_shell["Application shell<br/>[main.py]"]
  node_viewer["Tabbed PDF viewer<br/>[viewer.py]"]
  node_ui["Shared UI components<br/>[ui_common.py]"]
  node_icons["Vector icons<br/>[icons.py]"]
end

subgraph group_editing["Viewing and editing"]
  node_pdfops["PDF operations<br/>[ops.py]"]
  node_text["Text editing<br/>[textedit.py]"]
  node_annotations["Annotations<br/>[annots.py]"]
end

subgraph group_documents["Document operations"]
  node_pages["Page tools<br/>[pagetools.py]"]
  node_merge["Merge and split<br/>[mergesplit.py]"]
  node_tool_dialogs["Document tool dialogs<br/>[dialogs.py]"]
  node_printing["Print preview<br/>[printing.py]"]
  node_export["Format export<br/>[exporters.py]"]
  node_pptx_base["PowerPoint template<br/>[_pptx_base.py]"]
  node_signing["Signature services<br/>[signing.py]"]
end

subgraph group_support["Application services"]
  node_recovery["Automatic recovery<br/>[recovery.py]"]
  node_updater["Secure updater<br/>[updater.py]"]
  node_window["Window snapping<br/>[winsnap.py]"]
end

node_user(("User"))
node_pdf_engine["PyMuPDF engine"]
node_tesseract["Tesseract OCR"]
node_release_service["Release service"]
node_printer["System printer"]

node_user -->|"opens or creates"| node_shell
node_shell -->|"opens document"| node_viewer
node_shell -->|"builds interface"| node_ui
node_shell -->|"uses icons"| node_icons
node_shell -->|"opens tools"| node_merge
node_shell -->|"opens dialogs"| node_tool_dialogs
node_shell -->|"checks updates"| node_updater
node_shell -->|"uses recovery"| node_recovery
node_shell -->|"enables snapping"| node_window
node_viewer -->|"performs operations"| node_pdfops
node_viewer -->|"edits text"| node_text
node_viewer -->|"adds annotations"| node_annotations
node_viewer -->|"uses page tools"| node_pages
node_viewer -->|"opens merge tools"| node_merge
node_viewer -->|"opens print preview"| node_printing
node_viewer -->|"exports document"| node_export
node_viewer -->|"uses signatures"| node_signing
node_viewer -->|"uses recovery"| node_recovery
node_viewer -->|"opens tools"| node_tool_dialogs
node_pdfops -->|"reads and writes"| node_pdf_engine
node_text -->|"uses PDF operations"| node_pdfops
node_merge -->|"uses operations"| node_pdfops
node_printing -->|"uses operations"| node_pdfops
node_export -->|"uses template"| node_pptx_base
node_export -->|"reads document"| node_pdf_engine
node_viewer -.->|"runs OCR"| node_tesseract
node_updater -->|"checks releases"| node_release_service
node_printing -.->|"prints pages"| node_printer
node_viewer -->|"saves or exports"| node_user

click node_shell "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/main.py"
click node_viewer "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/viewer.py"
click node_ui "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/ui_common.py"
click node_icons "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/icons.py"
click node_pdfops "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/ops.py"
click node_text "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/textedit.py"
click node_annotations "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/annots.py"
click node_pages "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/pagetools.py"
click node_merge "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/mergesplit.py"
click node_tool_dialogs "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/dialogs.py"
click node_printing "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/printing.py"
click node_export "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/exporters.py"
click node_pptx_base "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/_pptx_base.py"
click node_signing "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/signing.py"
click node_recovery "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/recovery.py"
click node_updater "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/updater.py"
click node_window "https://github.com/stackoverflowed20-stack/verticepdf/blob/main/winsnap.py"

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_shell,node_viewer,node_ui,node_icons,node_user toneBlue
class node_pdfops,node_text,node_annotations toneAmber
class node_pages,node_merge,node_tool_dialogs,node_printing,node_export,node_pptx_base,node_signing toneMint
class node_recovery,node_updater,node_window toneRose
class node_pdf_engine,node_tesseract,node_release_service,node_printer toneIndigo
```

## Components

### Desktop application

- [Application shell](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/main.py): `main.py`
- [Tabbed PDF viewer](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/viewer.py): `viewer.py`
- [Shared UI components](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/ui_common.py): `ui_common.py`
- [Vector icons](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/icons.py): `icons.py`

### Viewing and editing

- [PDF operations](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/ops.py): `ops.py`
- [Text editing](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/textedit.py): `textedit.py`
- [Annotations](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/annots.py): `annots.py`

### Document operations

- [Page tools](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/pagetools.py): `pagetools.py`
- [Merge and split](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/mergesplit.py): `mergesplit.py`
- [Document tool dialogs](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/dialogs.py): `dialogs.py`
- [Print preview](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/printing.py): `printing.py`
- [Format export](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/exporters.py): `exporters.py`
- [PowerPoint template](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/_pptx_base.py): `_pptx_base.py`
- [Signature services](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/signing.py): `signing.py`

### Application services

- [Automatic recovery](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/recovery.py): `recovery.py`
- [Secure updater](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/updater.py): `updater.py`
- [Window snapping](https://github.com/stackoverflowed20-stack/verticepdf/blob/main/winsnap.py): `winsnap.py`

### Other components

- **User**
- **PyMuPDF engine**
- **Tesseract OCR**
- **Release service**
- **System printer**

## Connections

- User → Application shell: opens or creates (evidence: `README.md`)
- Application shell → Tabbed PDF viewer: opens document (evidence: `main.py`)
- Application shell → Shared UI components: builds interface (evidence: `main.py`)
- Application shell → Vector icons: uses icons (evidence: `main.py`)
- Application shell → Merge and split: opens tools (evidence: `main.py`)
- Application shell → Document tool dialogs: opens dialogs (evidence: `main.py`)
- Application shell → Secure updater: checks updates (evidence: `main.py`)
- Application shell → Automatic recovery: uses recovery (evidence: `main.py`)
- Application shell → Window snapping: enables snapping (evidence: `main.py`)
- Tabbed PDF viewer → PDF operations: performs operations (evidence: `viewer.py`)
- Tabbed PDF viewer → Text editing: edits text (evidence: `viewer.py`)
- Tabbed PDF viewer → Annotations: adds annotations (evidence: `viewer.py`)
- Tabbed PDF viewer → Page tools: uses page tools (evidence: `viewer.py`)
- Tabbed PDF viewer → Merge and split: opens merge tools (evidence: `viewer.py`)
- Tabbed PDF viewer → Print preview: opens print preview (evidence: `viewer.py`)
- Tabbed PDF viewer → Format export: exports document (evidence: `viewer.py`)
- Tabbed PDF viewer → Signature services: uses signatures (evidence: `viewer.py`)
- Tabbed PDF viewer → Automatic recovery: uses recovery (evidence: `viewer.py`)
- Tabbed PDF viewer → Document tool dialogs: opens tools (evidence: `viewer.py`)
- PDF operations → PyMuPDF engine: reads and writes (evidence: `ops.py`)
- Text editing → PDF operations: uses PDF operations (evidence: `textedit.py`)
- Merge and split → PDF operations: uses operations (evidence: `mergesplit.py`)
- Print preview → PDF operations: uses operations (evidence: `printing.py`)
- Format export → PowerPoint template: uses template (evidence: `exporters.py`)
- Format export → PyMuPDF engine: reads document (evidence: `README.md`)
- Tabbed PDF viewer → Tesseract OCR: runs OCR (evidence: `README.md`)
- Secure updater → Release service: checks releases (evidence: `updater.py`)
- Print preview → System printer: prints pages (evidence: `README.md`)
- Tabbed PDF viewer → User: saves or exports (evidence: `README.md`)
