Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active August 11, 2021 07:42
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 aspose-com-gists/2a9b150b34c509a53ba4eb58a0ab814e to your computer and use it in GitHub Desktop.
Save aspose-com-gists/2a9b150b34c509a53ba4eb58a0ab814e to your computer and use it in GitHub Desktop.
// Create an instance of the TeXLoadOptions class
auto options = MakeObject<TeXLoadOptions>();
// Load the TeX file
auto pdfDocument = MakeObject<Document>(u"SourceDirectory\\samplefile.tex", options);
// Save the TeX file as DOCX
pdfDocument->Save(u"OutputDirectory\\TeXToDOCX_out.docx", SaveFormat::DocX);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment