Skip to content

Instantly share code, notes, and snippets.

@mmsajjad-aspose
Last active December 4, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmsajjad-aspose/d434c70aefd68cbf5265cdfd6abc95b8 to your computer and use it in GitHub Desktop.
Save mmsajjad-aspose/d434c70aefd68cbf5265cdfd6abc95b8 to your computer and use it in GitHub Desktop.
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