AllToMarkdown 1.26.8.18
dotnet add package AllToMarkdown --version 1.26.8.18
NuGet\Install-Package AllToMarkdown -Version 1.26.8.18
<PackageReference Include="AllToMarkdown" Version="1.26.8.18" />
<PackageVersion Include="AllToMarkdown" Version="1.26.8.18" />
<PackageReference Include="AllToMarkdown" />
paket add AllToMarkdown --version 1.26.8.18
#r "nuget: AllToMarkdown, 1.26.8.18"
#:package AllToMarkdown@1.26.8.18
#addin nuget:?package=AllToMarkdown&version=1.26.8.18
#tool nuget:?package=AllToMarkdown&version=1.26.8.18
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 | Versions 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. |
-
net10.0
- BracketPipe (>= 0.7.7232.28997)
- CsvHelper (>= 33.1.0)
- DocSharp.Binary.Doc (>= 0.18.1)
- DocSharp.Binary.Ppt (>= 0.18.1)
- DocSharp.Binary.Xls (>= 0.18.1)
- DocSharp.Common (>= 0.18.1)
- DocSharp.Docx (>= 0.18.1)
- DocSharp.Markdown (>= 0.18.1)
- Microsoft.NETCore.Jit (>= 2.0.8)
- MimeKit (>= 4.16.0)
- PdfPig (>= 0.1.14)
- RtfPipe (>= 2.0.7677.4303)
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.