Skip to content

Instantly share code, notes, and snippets.

@shuhkla
Created August 12, 2019 13:17
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 shuhkla/3b97f422ace30f84bf5feddeca56cebe to your computer and use it in GitHub Desktop.
Save shuhkla/3b97f422ace30f84bf5feddeca56cebe to your computer and use it in GitHub Desktop.
How to convert DOCX to PDF by using Aspose.Words
// load the file to be converted
var document = new Aspose.Words.Document(dir + "template.doc");
// save in different formats
document.Save(dir + "output.pdf", Aspose.Words.SaveFormat.Pdf);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment