Created
August 11, 2022 07:06
Revisions
-
aspose-com-gists created this gist
Aug 11, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Load protected document using LoadOptions doc = aw.Document("protected_doc.docx", aw.loading.LoadOptions("MyPassword")) # Save document in HTML format doc.save("html_output.html", aw.SaveFormat.HTML) # Load the HTML file in an instance of Workbook class book = Workbook("html_output.html") # Save as JSON book.save("word-to-json.json", SaveFormat.JSON) 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ Read the complete article on how to convert Word to JSON in Python: https://blog.aspose.com 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Load document doc = aw.Document("document1.docx") # Save document in HTML format doc.save("html_output.html", aw.SaveFormat.HTML) # Load the HTML file in an instance of Workbook class book = Workbook("html_output.html") # Save as JSON book.save("word-to-json.json", SaveFormat.JSON)