DO you know any library to convert Microsoft Office documents like Word (.doc) or Excel (xlsx) into PDF using NodeJS? I have been looking around with no luck. Thanks
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Well, I think the best possible converting option would be using the LibreOffice headless command line option.
libreoffice --headless --convert-to pdf *.odt
So if you want to call from Node.js, you have to wrap the command line call into child process http://nodejs.org/api/child_process.html