AllToMarkdown 1.26.8.18

dotnet add package AllToMarkdown --version 1.26.8.18
                    
NuGet\Install-Package AllToMarkdown -Version 1.26.8.18
                    
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="AllToMarkdown" Version="1.26.8.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AllToMarkdown" Version="1.26.8.18" />
                    
Directory.Packages.props
<PackageReference Include="AllToMarkdown" />
                    
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 AllToMarkdown --version 1.26.8.18
                    
#r "nuget: AllToMarkdown, 1.26.8.18"
                    
#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 AllToMarkdown@1.26.8.18
                    
#: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=AllToMarkdown&version=1.26.8.18
                    
Install as a Cake Addin
#tool nuget:?package=AllToMarkdown&version=1.26.8.18
                    
Install as a Cake Tool

AllToMarkdown

A comprehensive .NET library for converting various document formats to Markdown. Supports text files, Microsoft Office documents, OpenDocument formats, PDFs, and email files.

Features

  • Wide Format Support: Convert from TXT, MD, CSV, DOCX, DOC, RTF, ODT, XLSX, XLS, ODS, PPTX, PPT, ODP, PDF, and EML files to Markdown.
  • Structured Output: Preserves document structure including headings, lists, tables, and formatting.
  • High Performance: Optimized for processing large documents efficiently.
  • Easy Integration: Simple API for .NET applications.
  • Cross-Platform: Compatible with .NET 9 and later versions.

Installation

Install the package via NuGet:

dotnet add package AllToMarkdown

Or download the source code and build the project.

Usage

Basic File Conversion

using AllToMarkdown;

// Convert a file to Markdown
string markdown = Converter.ConvertFileToMarkdown("path/to/document.docx");
Console.WriteLine(markdown);

Stream-Based Conversion

using (var stream = File.OpenRead("path/to/document.pdf"))
{
    string markdown = Converter.ConvertDataToMarkdown(stream, SupportedFileFormat.pdf);
    Console.WriteLine(markdown);
}

Supported Formats

  • Text Files: TXT, MD
  • Spreadsheets: CSV, XLSX, XLS, ODS
  • Word Documents: DOCX, DOC, RTF, ODT
  • Presentations: PPTX, PPT, ODP
  • PDFs: PDF
  • Emails: EML

API Reference

Converter Class

Methods
  • ConvertFileToMarkdown(string filePath): Converts a file at the specified path to Markdown.
  • ConvertDataToMarkdown(Stream data, SupportedFileFormat format): Converts data from a stream to Markdown based on the specified format.
SupportedFileFormat Enum

Defines the supported file formats for conversion.

Requirements

  • .NET 9.0 or later
  • Dependencies: BracketPipe, CsvHelper, DocSharp libraries, MimeKit, PdfPig, RtfPipe

Contributing

Contributions are welcome! Please fork the repository and submit pull requests for any improvements or bug fixes.

Keywords

file converter, document to markdown, PDF to markdown, Office to markdown, .NET library, text processing, document parsing

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AllToMarkdown:

Package Downloads
Graphene.AIOrchestrator

Agent orchestration engine (chat pipeline, tools, documents, email) backing AgentBridge.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.26.8.18 0 8/18/2026
1.26.8.17 56 8/17/2026
1.26.8.9 356 8/9/2026