Skip to content

Backend (C#)

The UpDoc server-side code handles PDF/Markdown extraction, workflow configuration, and the Management API endpoints.

All source files are in src/UpDoc/.

FileDescription
PdfExtractionService.csOrchestrates PDF extraction — loads media, delegates to page properties service
PdfPagePropertiesService.csStrategy-driven section extraction from PDF pages using PdfPig
MarkdownExtractionService.csExtracts sections from Markdown files using heading-based splitting
PdfExtractionController.csManagement API controller — endpoints for extraction, config, and workflow management
UpDocComposer.csUmbraco composer that registers all UpDoc services with dependency injection
WorkflowModels.csC# models for workflow JSON files (source, destination, map configs)
WorkflowService.csReads and manages workflow folders — scans updoc/workflows/, loads configs, lists active workflows