GroupDocs.Markdown for .NET 25.9 Release Notes

GroupDocs.Markdown for .NET is a document processing API that enables you to export PDF, Word, Excel, and other formats to Markdown for seamless integration with the generative AI ecosystem.

Features

  • Export multiple document formats: Convert popular file types (PDF, DOCX, XLSX, EPUB, and more) to Markdown.
  • Advanced Markdown formatting: Accurately export headings, paragraphs, lists, tables, links, images, blockquotes, and code blocks.
  • Flexible image handling: Export images separately or embed them directly into the Markdown file.
  • Local processing: No cloud or internet connection required. All processing happens securely on your machine.
  • Intuitive API design: Simple, developer-friendly API created with ease of use in mind.
  • Cross-platform support: Works on Windows and Linux with both .NET and .NET Framework assemblies included in the NuGet package.

Supported File Types

GroupDocs.Markdown supports conversion from the following formats:

  • PDF Documents
  • Microsoft Word (DOCX, DOC)
  • Microsoft Excel (XLSX, XLS)
  • Ebooks (EPUB, MOBI)
  • Plain Text and Web files

Usage

Common scenarios for exporting documents to Markdown.

Export PDF to Markdown

Convert a PDF into clean Markdown in just a few lines of code. By default, images are embedded in the output file.

// Import the namespace
using GroupDocs.Markdown;

// Set the license (optional)
License.Set("GroupDocs.Markdown.lic");

// Instantiate the converter
var converter = new MarkdownConverter("business-plan.pdf");

// Convert and save output to file
converter.Convert("business-plan.md");

Save images to a folder

This example shows how to convert a DOCX file to Markdown while saving images to a separate folder.

// Import the namespace
using GroupDocs.Markdown;

// Set the license (optional)
License.Set("GroupDocs.Markdown.lic");

// Instantiate the converter
var converter = new MarkdownConverter("annual-report.docx");

// Set image export strategy and output folder
var convertOptions = new DocumentConverterOptions();
convertOptions.ImageExportStrategy = new ExportImagesToFileSystemStrategy("./images");

// Convert and save output to file
converter.Convert("annual-report.md", convertOptions);

Requirements

  • .NET 6.0+ (Windows or Linux)
  • .NET Framework 4.6.2+ (Windows)

License

See detailed legal information, including terms of use, copyright, EULA, and privacy policy:
https://about.groupdocs.com/legal/

Support

For questions or technical assistance, please use our Free Support Forum.