How danialjaved/rune works
Rune is a native Windows PDF reader whose main workflow is opening a local PDF, displaying and navigating it, and applying reading or editing operations before saving, printing, or sharing. The graph covers the UI, document/rendering engine, PDFium bridge, and Windows integrations. README capabilities fill in several unsampled feature branches; edges are limited to relationships visible in excerpts or documented in the README.
Main entry points: MainWindow.xaml.cs App window · PdfViewer.xaml.cs PDF viewer · PdfDocument.cs Open PDF document · PdfViewer.StampPlacement.cs Signature placement
Components 32
Reader interface
- App window
src/Rune.App/MainWindow.xaml.cs - Document tabs
src/Rune.App/Controls/DocumentView.xaml.cs - PDF viewer
src/Rune.App/Controls/PdfViewer.xaml.cs - Presentation mode
src/Rune.App/Controls/PresentationView.xaml.cs - Command palette
src/Rune.App/Controls/CommandPalette.xaml.cs - Markup tools
src/Rune.App/Controls/AnnotationTool.cs - Text editing UI
src/Rune.App/MainWindow.TextTool.cs - Signature placement
src/Rune.App/Controls/PdfViewer.StampPlacement.cs - Form interaction
src/Rune.App/Controls/PdfViewer.Forms.cs
Document engine
- Open PDF document
src/Rune.Engine/PdfDocument.cs - Tile rendering
src/Rune.Engine/RenderScheduler.cs - Page bitmap
src/Rune.Engine/PageBitmap.cs - Page text
src/Rune.Engine/PageText.cs - Document search
src/Rune.Engine/DocumentSearch.cs - PDF annotations
src/Rune.Engine/PdfDocument.Annotations.cs - PDF text operations
src/Rune.Engine/PdfDocument.Text.cs - PDF forms
src/Rune.Engine/PdfDocument.Forms.cs - Field appearance
src/Rune.Engine/FieldAppearance.cs - Flatten edits
src/Rune.Engine/PdfDocument.Flatten.cs - Signature data
src/Rune.Engine/PdfDocument.Signatures.cs - Signature matting
src/Rune.Engine/SignatureMatte.cs
PDFium interop
- PDFium facade
src/Rune.PdfiumInterop/PdfiumNative.cs - Native bindings
src/Rune.PdfiumInterop/NativeMethods.cs - Lazy file access
src/Rune.PdfiumInterop/FileAccessAdapter.cs
Windows services
- File picker
src/Rune.App/Services/FilePickerHost.cs - Print service
src/Rune.App/Services/PrintService.cs - Share service
src/Rune.App/Services/ShareService.cs - Saved signatures
src/Rune.App/Services/SignatureStore.cs
Other components
- Reader user
- Windows share sheet
- Windows printing
- Local PDF files
Connections 34
- Reader user → App window: uses
README.md - App window → Document tabs: hosts tabs
src/Rune.App/MainWindow.xaml.cs - Document tabs → PDF viewer: displays document
src/Rune.App/Controls/DocumentView.xaml.cs - PDF viewer → Tile rendering: requests tiles
src/Rune.App/Controls/PdfViewer.xaml.cs - Tile rendering → Open PDF document: renders pages
src/Rune.Engine/RenderScheduler.cs - Open PDF document → PDFium facade: calls
src/Rune.Engine/PdfDocument.cs - PDFium facade → Native bindings: wraps bindings
src/Rune.PdfiumInterop/PdfiumNative.cs - Open PDF document → Lazy file access: opens lazily
src/Rune.Engine/PdfDocument.cs - App window → File picker: opens and saves
src/Rune.App/MainWindow.xaml.cs - File picker → Local PDF files: selects files
src/Rune.App/Services/FilePickerHost.cs - PDF viewer → Page text: selects text
src/Rune.App/Controls/PdfViewer.xaml.cs - App window → Document search: searches pages
src/Rune.App/MainWindow.xaml.cs - Document search → Open PDF document: queries text
src/Rune.Engine/DocumentSearch.cs - PDF viewer → PDF annotations: edits markup
README.md - App window → Markup tools: offers tools
README.md - PDF viewer → Text editing UI: edits page text
README.md - Text editing UI → PDF text operations: writes text
README.md - PDF viewer → Form interaction: edits fields
README.md - Form interaction → PDF forms: updates fields
README.md - PDF forms → Field appearance: uses appearance
src/Rune.Engine/PdfDocument.Forms.cs - PDF viewer → Signature placement: places signature
README.md - Signature placement → Saved signatures: reuses signatures
- Signature placement → Signature matting: removes paper
- App window → Flatten edits: flattens edits
README.md - App window → Print service: prints document
README.md - Print service → Open PDF document: renders print pages
src/Rune.App/Services/PrintService.cs - Print service → Windows printing: opens print UI
src/Rune.App/Services/PrintService.cs - App window → Share service: shares document
src/Rune.App/MainWindow.xaml.cs - Share service → Open PDF document: saves share copy
src/Rune.App/Services/ShareService.cs - Share service → Windows share sheet: opens share sheet
README.md - Open PDF document → Signature data: reads signature details
README.md - PDF viewer → Presentation mode: shows fullscreen
README.md - App window → Command palette: opens commands
README.md - Tile rendering → Page bitmap: produces pixels
src/Rune.Engine/RenderScheduler.cs