GroupDocs.Markdown is a document processing API that exports PDF, Word, Excel, and other formats to Markdown for seamless integration with the generative AI ecosystem.
$ dotnet add package GroupDocs.MarkdownGroupDocs.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.
GroupDocs.Markdown supports conversion from the following formats:
Common scenarios for exporting documents 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");
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);
See detailed legal information, including terms of use, copyright, EULA, and privacy policy:
https://about.groupdocs.com/legal/
For questions or technical assistance, please use our Free Support Forum.