![]() |
VOOZH | about |
dotnet add package Undoc --version 0.5.2
NuGet\Install-Package Undoc -Version 0.5.2
<PackageReference Include="Undoc" Version="0.5.2" />
<PackageVersion Include="Undoc" Version="0.5.2" />Directory.Packages.props
<PackageReference Include="Undoc" />Project file
paket add Undoc --version 0.5.2
#r "nuget: Undoc, 0.5.2"
#:package Undoc@0.5.2
#addin nuget:?package=Undoc&version=0.5.2Install as a Cake Addin
#tool nuget:?package=Undoc&version=0.5.2Install as a Cake Tool
High-performance Microsoft Office document extraction to Markdown for .NET.
dotnet add package Undoc
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();
using Undoc;
using var doc = UndocDocument.ParseFile("document.xlsx");
var options = new MarkdownOptions
{
IncludeFrontmatter = true,
ParagraphSpacing = true
};
var markdown = doc.ToMarkdown(options);
using Undoc;
byte[] data = File.ReadAllBytes("document.pptx");
using var doc = UndocDocument.ParseBytes(data);
var markdown = doc.ToMarkdown();
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);
}
}
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}");
ParseFile(string path) - Parse document from file pathParseBytes(byte[] data) - Parse document from bytesToMarkdown(MarkdownOptions? options) - Convert to MarkdownToText() - Convert to plain textToJson(bool compact) - Convert to JSONPlainText() - Get plain text (fast extraction)GetResourceIds() - List of resource IDsGetResourceInfo(string id) - Resource metadata as JsonDocumentGetResourceData(string id) - Resource binary dataTitle - Document titleAuthor - Document authorSectionCount - Number of sectionsResourceCount - Number of resourcesVersion (static) - Library versionIncludeFrontmatter - Include YAML frontmatterEscapeSpecialChars - Escape special charactersParagraphSpacing - Add extra paragraph spacingMIT 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. |
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. |
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 |