Markdown SDK to export various document types into clean, semantic Markdown.
Preserve document structure, headings, lists, tables, links, and images
Take control over images by embedding them or saving as external resources.
These are the features that make our solution stand out.
Make your PDF, Word, Excel, eBook and Text LLM-ready by exporting them to Markdown.
Preserve document structure, headings, lists, tables, links, and images.
Embed images or save them as external resources. Replace images during the conversion process.
Convert entire documents or limit conversion to specific pages or worksheets as needed.
The most common usage scenarios for exporting documents to Markdown. You can request a free temporary license to test the product in your environment.
// Import the namespace
using GroupDocs.Markdown;
// Instantiate converter
using var converter = new MarkdownConverter("business-plan.pdf");
// Convert and save output to file
converter.Convert("business-plan.md");
# Import the namespace
from groupdocs.markdown import MarkdownConverter
# Convert and save output to file
MarkdownConverter.to_file("business-plan.pdf", "business-plan.md")
// Import the namespace
using GroupDocs.Markdown;
// Set the license
License.Set("GroupDocs.Markdown.lic");
// Instantiate converter
using var converter = new MarkdownConverter("annual-report.docx");
// Set image export strategy and output folder
var options = new ConvertOptions
{
ImageExportStrategy = new ExportImagesToFileSystemStrategy("./images")
{
ImagesRelativePath = "images"
}
};
// Convert and save output to file
converter.Convert("annual-report.md", options);
# Import the namespace
from groupdocs.markdown import MarkdownConverter, ConvertOptions
from groupdocs.markdown import ExportImagesToFileSystemStrategy
# Set image export strategy and output folder
strategy = ExportImagesToFileSystemStrategy("./images")
strategy.images_relative_path = "images"
options = ConvertOptions()
options.image_export_strategy = strategy
# Convert and save output to file
MarkdownConverter.to_file(
"annual-report.docx", "annual-report.md",
convert_options=options)
// Import the namespace
using GroupDocs.Markdown;
// Inspect the document without converting
DocumentInfo info = MarkdownConverter.GetInfo("report.pdf");
Console.WriteLine($"{info.PageCount} pages, by {info.Author}");
// Convert only the first 3 pages with front matter
var options = new ConvertOptions
{
PageNumbers = new[] { 1, 2, 3 },
IncludeFrontMatter = true
};
// Use the one-liner static method
MarkdownConverter.ToFile("report.pdf", "report.md", options);
# Import the namespace
from groupdocs.markdown import MarkdownConverter, ConvertOptions
# Inspect the document without converting
info = MarkdownConverter.get_info("report.pdf")
print(f"{info.page_count} pages, by {info.author}")
# Convert only the first 3 pages with front matter
options = ConvertOptions()
options.page_numbers = [1, 2, 3]
options.include_front_matter = True
# Use the one-liner static method
MarkdownConverter.to_file("report.pdf", "report.md",
convert_options=options)
The following file formats are supported for export to Markdown.
Dive into a detailed breakdown of our key figures, providing comprehensive metrics and statistical insights into our achievements, impact, and growth.
Convert from dozens of document and text formats including PDF, Word, Excel and eBooks to Markdown providing seamless integrations with the gen AI ecosystem.
Our solutions have become trusted and widely adopted in the developer community, providing seamless integration for your projects.
We provide more than 15 document processing SDKs, offering smooth experience for your integrations. We process so you can relax.
Serving the most iconic brands around the globe. Discover why hundreds love GroupDocs products! Join now!
GroupDocs libraries are employed by globally renowned and distinguished brands across the world.
GroupDocs.Markdown supports the following operating systems and frameworks.
Explore documentation, code samples, and community support to enhance your experience.
Find answers to common inquiries in our FAQ section to quickly address your queries and concerns.