Convert microsoft documents to pdf using nodejs

Do you know any library for converting Microsoft Office documents such as Word (.doc) or Excel (xlsx) to PDF using NodeJS? I looked around with no luck. Thanks

+5
source share
1 answer

Well, I think the best conversion option would be to use the LibreOffice command line option without a header.

libreoffice --headless --convert-to pdf *.odt

So, if you want to call from Node.js, you must wrap the command line call in the child process http://nodejs.org/api/child_process.html

+7
source

All Articles