DemaConsulting.DocDown.Tool 0.3.0-beta.4

Prefix Reserved
This is a prerelease version of DemaConsulting.DocDown.Tool.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global DemaConsulting.DocDown.Tool --version 0.3.0-beta.4
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DemaConsulting.DocDown.Tool --version 0.3.0-beta.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DemaConsulting.DocDown.Tool&version=0.3.0-beta.4&prerelease
                    
nuke :add-package DemaConsulting.DocDown.Tool --version 0.3.0-beta.4
                    

DocDown

GitHub forks GitHub stars GitHub contributors License Build Quality Gate Security NuGet

Overview

DocDown is a family of .NET libraries and a command-line tool that extract useful information from documents (PDF, Word, Excel, PowerPoint, Visio) into a scratch folder, in a predictable layout designed to be fed to multimodal AI agents. It reports what was read, what was counted, and any plain-language notes about steps that could not be completed; it does not judge whether document content is acceptable.

DocDown architecture: your documents, the Core engine with format backends and optional page-rendering add-ons, and the scratch folder it writes

Features

  • 📄 Many Formats - PDF, Word, Excel, PowerPoint, and Visio
  • 📦 Invariant Output Layout - summary.txt, manifest.json, metadata.json, content.md, images/, and pages/ for every document
  • 🖼️ Page Images - Optional fully managed rendering of PDF pages, slides, and Visio pages
  • 💬 Review Comments - review-comments.md written when the document carries reviewer comments
  • 📝 Tracked Changes - Word redlines kept as {++inserted++} / {--deleted--} markup, with a count in the summary (--accept-changes shows the accepted view)
  • 📝 Honest Reporting - Anything that could not be extracted is reported with a reason, never silently omitted
  • 🧩 Pluggable Backends - Explicit, reflection-free registration; write your own backend on the Core abstractions
  • 🌐 Cross-Platform - Fully managed libraries for .NET 8, 9, and 10; the tool runs on .NET 10
  • ✅ Self-Validation - Built-in qualification tests for regulated environments

Installation

Libraries

Install one format package per format you read; each brings DemaConsulting.DocDown.Core with it.

dotnet add package DemaConsulting.DocDown.Pdf      # .pdf
dotnet add package DemaConsulting.DocDown.Office   # .docx, .xlsx, .pptx, .vsdx, .vsdm

Page images come from optional add-on packages: DemaConsulting.DocDown.Pdf.Rendering, DemaConsulting.DocDown.PowerPoint.Rendering, and DemaConsulting.DocDown.Visio.Rendering.

Command-Line Tool

Requires the .NET 10 SDK or runtime.

dotnet tool install --global DemaConsulting.DocDown.Tool
docdown --version

Or install into a local tool manifest so the version travels with the repository:

dotnet new tool-manifest  # if you don't have a tool manifest already
dotnet tool install DemaConsulting.DocDown.Tool
dotnet docdown --version

Usage

Command Line

docdown --input report.pdf --scratch ./out

The last line of output is the absolute path to the produced summary.txt, ready to hand to an agent. The tool exits 0 when the output layout was written (even if notes were recorded) and 1 when the document was unreadable or an argument was bad. Run docdown --help for all options, and docdown --validate to run self-validation.

Library

using System;
using System.Threading;
using DemaConsulting.DocDown.Core;
using DemaConsulting.DocDown.Word;

var engine = new DocDownBuilder()
    .AddWord()
    .Build();

var result = await engine.ExtractAsync(
    documentPath: "contracts/sample-agreement.docx",
    scratchFolder: "scratch/sample-agreement",
    options: null,
    cancellationToken: CancellationToken.None);

if (result.Outcome == ExtractionOutcome.Unreadable)
{
    Console.Error.WriteLine(result.Failure?.Explanation);
    return 1;
}

Console.WriteLine(result.SummaryPath);
return 0;

Output Layout

out/
├── summary.txt         # what was extracted and where - paste this into the model context window
├── manifest.json       # machine-readable twin of summary.txt
├── metadata.json       # what the document asserts about itself, with provenance
├── content.md          # textual content as markdown, linking into images/
├── review-comments.md  # reviewer comments - only when the document has any
├── images/             # extracted embedded images
└── pages/              # rendered page images, when requested and available

User Guide

The DocDown User Guide, covering every format, the output contract, backend selection, and the tool options, is available on the DocDown releases page.

Contributing

Contributions are welcome! Please see our Contributing Guide for development setup, coding standards, and submission guidelines. Also review our Code of Conduct.

For bug reports, feature requests, and questions, please use GitHub Issues.

License

This project is licensed under the MIT License — see the LICENSE file for details.

Support

Project Practices

  • 🔍 Linting Enforcement - markdownlint, cspell, and yamllint enforced on every CI run
  • 📋 Continuous Compliance - Compliance evidence generated automatically on every CI run, following the Continuous Compliance methodology
  • ☁️ SonarCloud Integration - Quality gate and security analysis on every build
  • 🔗 Requirements Traceability - Requirements linked to passing tests with auto-generated trace matrix

Security

For security concerns and vulnerability reporting, please see our Security Policy.

Acknowledgements

DocDown is built with the following open-source projects:

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.3.0-beta.8 576 11/30/2026
0.3.0-beta.7 1,349 11/26/2026
0.3.0-beta.6 8,740 11/15/2026
0.3.0-beta.5 68 11/11/2026
0.3.0-beta.4 65 11/10/2026
0.3.0-beta.3 64 11/10/2026
0.3.0-beta.2 67 11/3/2026
0.3.0-beta.1 84 10/28/2026
0.2.0 118 10/14/2026
0.2.0-beta.3 74 10/11/2026
0.2.0-beta.2 84 10/10/2026
0.2.0-beta.1 72 10/8/2026
0.1.0 138 9/23/2026
0.1.0-beta.2 88 9/15/2026
0.1.0-beta.1 88 9/14/2026