Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
All NodeJS GISTS belong here
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
You can’t perform that action at this time.