Last active
December 4, 2018 19:05
-
-
Save mmsajjad-aspose/d434c70aefd68cbf5265cdfd6abc95b8 to your computer and use it in GitHub Desktop.
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
All NodeJS GISTS belong here |
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
const { WordsApi, PostDocumentSaveAsRequest, SaveOptionsData } = require("asposewordscloud"); | |
wordsApi = new WordsApi(AppSid, AppKey); | |
var request = new PostDocumentSaveAsRequest({ | |
name: "html_example.html", | |
saveOptionsData: new SaveOptionsData( | |
{ | |
saveFormat: "docx", | |
fileName: "html_example.docx" | |
}) | |
}); | |
wordsApi.postDocumentSaveAs(request).then((result) => { | |
console.log(result.body.code); | |
}).catch(function(err) { | |
console.log(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment