Convert a Word Document to TXT format in JavaScript code. Save a Word Document as TXT using JavaScript....the input file and create a Document object to load the Word content...'@aspose/words' ); var doc = new aw.Document( "Input.docx" ) doc.save(...