How orklann/pep works
PEP is a macOS PDF editor; its documented user workflow is to open an external PDF, edit it, and save a new PDF. The tree shows Gene’s PDF parsing/object model, page and graphics types, and text-editing components alongside the Cocoa window and tool UI. The sampled headers expose few runtime calls, so the main workflow and links to unsampled subsystems are shown as unverified rather than asserted; this map does not imply a fully inspected implementation.
Main entry points: GInterpreter.h Content interpreter · GDocument.h PDF document · PEPWindow.h Document window · GPage.h PDF pages
Components 19
Mac app UI
- App delegate
PEP/AppDelegate.h - Document window
PEP/UI/PEPWindow.h - Editing sidebar
PEP/UI/PEPSideView.h - Editing tools
PEP/UI/PEPTool.h
PDF engine
- PDF lexer
PEP/Gene/GLexer.h - PDF parser
PEP/Gene/GParser.h - PDF objects
PEP/Gene/GObjects.h - PDF document
PEP/Gene/GDocument.h
Page graphics
- PDF pages
PEP/Gene/GPage.h - Content operators
PEP/Gene/GOperators.h - Graphics state
PEP/Gene/GGraphicsState.h - Color spaces
PEP/Gene/Color Spaces - PDF functions
PEP/Gene/Functions - Content interpreter
PEP/Gene/GInterpreter.h
Text editing
- Text parser
PEP/Gene/GTextParser.h - Text editor
PEP/Gene/GTextEditor.h - Glyph model
PEP/Gene/GGlyph.h - Text state
PEP/Gene/GTextState.h
Other components
- PDF editor user
Connections 19
- PDF editor user → App delegate: opens PDF
README.md - App delegate → Document window: uses window
PEP/AppDelegate.h - Document window → PDF document: holds document
PEP/UI/PEPWindow.h - Document window → Editing sidebar: includes sidebar
PEP/UI/PEPWindow.h - PDF parser → PDF lexer: uses lexer
PEP/Gene/GParser.h - PDF parser → PDF objects: parses objects
PEP/Gene/GParser.h - PDF document → PDF parser: loads PDF
- PDF document → PDF pages: provides pages
- PDF pages → Content interpreter: interprets content
- Content interpreter → Content operators: processes operators
- Content interpreter → Graphics state: uses state
- Content interpreter → Color spaces: maps colors
- Content interpreter → PDF functions: evaluates functions
- PDF pages → Text parser: extracts text
- Text parser → Glyph model: organizes glyphs
PEP/Gene/GTextParser.h - Editing sidebar → Text editor: delegates editing
PEP/UI/PEPSideView.h - Text editor → Text state: uses text state
- PDF editor user → Editing tools: edits PDF
README.md - PDF editor user → PDF document: saves new PDF
README.md