How lore11-p/open-pdf works
Open PDF is a Windows desktop PDF reader/editor with local document processing, plus a stdio MCP server for AI clients. The main workflow is opening a local PDF, viewing and editing it, then saving or exporting results; separate branches cover conversion, collaboration, security, and signatures. Edges use the README and source-index references, with direct calls included only where excerpts show them; unsampled command wiring is not inferred.
Main entry points: main.rs Tauri commands · engine.rs PDFium engine · pades.rs PAdES signing · ui Desktop UI
Components 23
Desktop workflow
- Desktop UI
ui - Tauri commands
src/main.rs - Session state
src/state.rs - PDFium engine
src/engine.rs - Release updates
src/update.rs
Document operations
- Annotations
src/annotate.rs - Text editing
src/pdftext.rs - Irreversible redaction
src/redact.rs - Deep cleanup
src/sanitize.rs - Page operations
src/pages.rs - Conversion and export
src/convert.rs - Image loading
src/image_loader.rs - OCR and speech
src/ocr.rs - Forms and passwords
src/security.rs
Signatures and trust
- PAdES signing
src/pades.rs - Timestamping
src/pades_tsa.rs - Signature verification
src/pades_verify.rs - OCSP revocation
src/pades_ocsp.rs
Sharing and security
- Local collaboration
src/collab.rs - Signature capture
src/signature.rs
AI integration
- MCP server
src/mcp_server.rs
Other components
- Local user
- AI agent client
Connections 29
- Local user → Desktop UI: uses
README.md - Desktop UI → Tauri commands: invokes commands
README.md - Tauri commands → Session state: manages
README.md - Tauri commands → PDFium engine: renders and reads
src/main.rs - Tauri commands → Annotations: dispatches
src/main.rs - Tauri commands → Text editing: dispatches
src/main.rs - Tauri commands → Irreversible redaction: dispatches
src/main.rs - Tauri commands → Deep cleanup: dispatches
src/main.rs - Tauri commands → Page operations: dispatches
src/main.rs - Tauri commands → Conversion and export: dispatches
src/main.rs - Tauri commands → Image loading: dispatches
src/main.rs - Tauri commands → OCR and speech: dispatches
src/main.rs - Tauri commands → Forms and passwords: dispatches
src/main.rs - Tauri commands → PAdES signing: dispatches
src/main.rs - Tauri commands → Signature verification: dispatches
src/main.rs - Tauri commands → OCSP revocation: dispatches
src/main.rs - Tauri commands → Local collaboration: dispatches
src/main.rs - Tauri commands → Signature capture: dispatches
src/main.rs - Tauri commands → Release updates: checks releases
README.md - Conversion and export → PDFium engine: uses
src/convert.rs - Page operations → PDFium engine: uses
src/pages.rs - OCR and speech → PDFium engine: uses
src/ocr.rs - Annotations → PDFium engine: uses
src/annotate.rs - Local collaboration → PDFium engine: renders pages
src/collab.rs - PAdES signing → Timestamping: requests timestamps
src/pades.rs - PAdES signing → Signature verification: uses verification
src/pades.rs - PAdES signing → OCSP revocation: checks revocation
src/pades.rs - AI agent client → MCP server: sends MCP requests
README.md - MCP server → PDFium engine: uses PDFium