Skip to content Skip to sidebar Skip to footer

Parse Microsoft Office Files In Node.JS

I'm working on a web application where users can upload Microsoft Office Document files. Right now, our server is running Node.JS with Express.js and we're hosted on Heroku. Becaus

Solution 1:

While there don't seem to be anything you can get with NPM that will do Word directly, you might be able to use a REST API to request it via another cloud service. For example Saaspose (they of the famous Aspose tools) have public API for Word, Excel, PDF, and others. They list node.js, javascript, and Heroku support on their page.

EDIT:

I see that Saaspose is now called Aspose for Cloud

Another API that claims something similar is Doxument


Solution 2:

Office package: npm install office seems to provide at least part of the answer. I use it to read Excel files, so far have not tried any Word docs.


Solution 3:

There doesn't seem to be any yet. See below for something that might help.

Can I read PDF or Word Docs with Node.js?


Solution 4:

You can use mammoth to parse .docx files https://www.npmjs.com/package/mammoth and xlsx to parse .xlsx files https://github.com/SheetJS/js-xlsx


Post a Comment for "Parse Microsoft Office Files In Node.JS"