Scroll to top
Ali November 24, 2013
Bulk exporting Word documents to other formats with JavaScript

Bulk exporting Word documents to other formats with JavaScript

JavaScript is hot commodity for server and client side web development. But when it comes to command line programming it is unlikely to ditch the likes of Python and Ruby for JavaScript. I don't have the luxury of picking my toolset at work. I'm a business consultant with no access to anything beyond the essential enterprise software. Heck, I don't even have access to PowerShell. All I have left with is JavaScript. Life is fun. I assume that I'm not the only one facing this challenge, so it may be worth sharing how I do some basic automation at work using JavaScript.

Problem

The team needed to convert a big number (200+) of Word documents saved in different formats into a single format, DOTX to be specific.