GroupDocs.Markdown for Java 25.11 Release Notes
GroupDocs.Markdown for Java 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 Java and Java 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 com.groupdocs.markdown.MarkdownConverter;
public class Main {
public static void main(String[] args) {
// Set the license (optional)
License.setLicense("GroupDocs.Markdown.lic");
// Instantiate the converte
MarkdownConverter converter = new MarkdownConverter("sample.docx");
// Convert and save output to file
converter.convertToFile("result.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 com.groupdocs.markdown.MarkdownConverter;
public class Main {
public static void main(String[] args) {
// Set the license (optional)
License.setLicense("GroupDocs.Markdown.lic");
// Instantiate the converte
MarkdownConverter converter = new MarkdownConverter("annual-report.docx");
// Set image export strategy and output folder
DocumentConverterOptions convertOptions = new DocumentConverterOptions();
convertOptions.setImageExportStrategy(new ExportImagesToFileSystemStrategy("./images"));
// Convert and save output to file
converter.convert("annual-report.md", convertOptions);
Requirements
- JRE/JDK 8
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.