Learn how to convert Word documents to Markdown in Java: https://blog.aspose.com/2021/11/01/convert-word-to-markdown-using-java/
Last active
December 3, 2021 07:17
-
-
Save aspose-com-gists/d3fee2edd09e40fc8e40c8aee4beab65 to your computer and use it in GitHub Desktop.
Convert Word Document to Markdown in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load Word document from disk | |
Document doc = new Document("document.docx"); | |
// Set Markdown options | |
MarkdownSaveOptions so = new MarkdownSaveOptions(); | |
so.setImagesFolder("D:\\Images"); | |
// Save the document in Markdown format | |
doc.save("word-to-markdown.md", so); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load Word document from disk | |
Document doc = new Document("document.docx"); | |
// Save the document in Markdown format | |
doc.save("word-to-markdown.md"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment