VOOZH about

URL: https://www.nuget.org/packages/Undoc/

⇱ NuGet Gallery | Undoc 0.5.2




Undoc 0.5.2

dotnet add package Undoc --version 0.5.2
 
 
NuGet\Install-Package Undoc -Version 0.5.2
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Undoc" Version="0.5.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Undoc" Version="0.5.2" />
 
Directory.Packages.props
<PackageReference Include="Undoc" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Undoc --version 0.5.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Undoc, 0.5.2"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Undoc@0.5.2
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Undoc&version=0.5.2
 
Install as a Cake Addin
#tool nuget:?package=Undoc&version=0.5.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Undoc

High-performance Microsoft Office document extraction to Markdown for .NET.

Installation

dotnet add package Undoc

Usage

Basic Usage

using Undoc;

// Parse a document
using var doc = UndocDocument.ParseFile("document.docx");

// Convert to Markdown
var markdown = doc.ToMarkdown();
Console.WriteLine(markdown);

// Convert to plain text
var text = doc.ToText();

// Convert to JSON
var json = doc.ToJson();

With Markdown Options

using Undoc;

using var doc = UndocDocument.ParseFile("document.xlsx");

var options = new MarkdownOptions
{
 IncludeFrontmatter = true,
 ParagraphSpacing = true
};

var markdown = doc.ToMarkdown(options);

Parse from Bytes

using Undoc;

byte[] data = File.ReadAllBytes("document.pptx");

using var doc = UndocDocument.ParseBytes(data);
var markdown = doc.ToMarkdown();

Extract Resources (Images)

using Undoc;

using var doc = UndocDocument.ParseFile("document.docx");

// Get all resource IDs
var resourceIds = doc.GetResourceIds();

foreach (var id in resourceIds)
{
 // Get resource metadata
 using var info = doc.GetResourceInfo(id);
 var filename = info?.RootElement.GetProperty("filename").GetString();
 Console.WriteLine($"Resource: {filename}");

 // Get resource binary data
 var data = doc.GetResourceData(id);
 if (data != null && filename != null)
 {
 File.WriteAllBytes(filename, data);
 }
}

Document Metadata

using Undoc;

using var doc = UndocDocument.ParseFile("document.docx");

Console.WriteLine($"Title: {doc.Title}");
Console.WriteLine($"Author: {doc.Author}");
Console.WriteLine($"Sections: {doc.SectionCount}");
Console.WriteLine($"Resources: {doc.ResourceCount}");
Console.WriteLine($"Library Version: {UndocDocument.Version}");

Supported Formats

  • DOCX - Microsoft Word documents
  • XLSX - Microsoft Excel spreadsheets
  • PPTX - Microsoft PowerPoint presentations

Features

  • RAG-Ready Output: Structured Markdown optimized for RAG/LLM applications
  • High Performance: Native Rust implementation via P/Invoke
  • Asset Extraction: Images and embedded resources
  • Metadata Preservation: Document properties, styles, formatting
  • Cross-Platform: Windows, Linux, macOS (Intel & ARM)

API Reference

UndocDocument Class

Static Methods
  • ParseFile(string path) - Parse document from file path
  • ParseBytes(byte[] data) - Parse document from bytes
Instance Methods
  • ToMarkdown(MarkdownOptions? options) - Convert to Markdown
  • ToText() - Convert to plain text
  • ToJson(bool compact) - Convert to JSON
  • PlainText() - Get plain text (fast extraction)
  • GetResourceIds() - List of resource IDs
  • GetResourceInfo(string id) - Resource metadata as JsonDocument
  • GetResourceData(string id) - Resource binary data
Properties
  • Title - Document title
  • Author - Document author
  • SectionCount - Number of sections
  • ResourceCount - Number of resources
  • Version (static) - Library version

MarkdownOptions Class

  • IncludeFrontmatter - Include YAML frontmatter
  • EscapeSpecialChars - Escape special characters
  • ParagraphSpacing - Add extra paragraph spacing

License

MIT License - see for details.

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

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Undoc:

Package Downloads
FileFlux

Complete document processing SDK optimized for RAG systems. Transform PDF, DOCX, Excel, PowerPoint, Markdown and other formats into high-quality chunks with intelligent semantic boundary detection. Includes advanced chunking strategies, metadata extraction, and performance optimization.

FileFlux.Core

Pure document extraction SDK for RAG systems. Zero AI dependencies. Extract text from PDF, DOCX, Excel, PowerPoint, Markdown, HTML, and text files. Provides IDocumentReader interface and implementations. Use FileFlux.Core for extraction-only scenarios. For AI-enhanced extraction (image OCR, captioning), use the FileFlux package.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.2 85 6/12/2026
0.5.1 89 6/12/2026
0.5.0 98 5/31/2026
0.3.1 102 5/21/2026
0.3.0 330 5/12/2026
0.2.2 113 5/9/2026
0.2.1 131 4/27/2026
0.2.0 109 4/19/2026
0.1.20 111 4/15/2026
0.1.19 104 4/14/2026
0.1.18 130 3/19/2026
0.1.17 2,760 3/9/2026
0.1.16 777 2/21/2026
0.1.15 115 2/21/2026
0.1.13 324 1/31/2026
0.1.12 492 1/28/2026
0.1.11 119 1/27/2026