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

后端 未结 8 2202
不知归路
不知归路 2021-02-02 14:11

I can\'t find any packages to do this. I know PHP has a ton of libraries for PDFs (like http://www.fpdf.org/) but anything for Node?

8条回答
  •  不要未来只要你来
    2021-02-02 14:29

    Looks like there's a few for pdf, but I didn't find any for Word.

    CPU bound processing like that isn't really Node's strong point anyway (i.e. you get no additional benefits using node to do it over any other language). A pragmatic approach would be to find a good tool and utilise it from Node.

    I have heard good things around the office about docsplit http://documentcloud.github.com/docsplit/

    While it's not Node, you could easily invoke it from Node with http://nodejs.org/docs/latest/api/all.html#child_process.exec

提交回复
热议问题