peter
peter

Reputation: 345

Parse PDF in Node.js

I am using meteor-react for uploading PDF docs to my Node.js backend, where I want to read the uploaded PDF doc, as a json, or whatever. Is it possible? And what library/tool would you recommended for that? Thank you!

Upvotes: 10

Views: 40487

Answers (1)

Arash Motamedi
Arash Motamedi

Reputation: 10662

There are a couple of Node packages for parsing PDF:

  1. pdf2json: https://www.npmjs.com/package/pdf2json
  2. pdfreader: https://www.npmjs.com/package/pdfreader

Check out their Github and documentation pages. It appears to me that pdf2json is a more complete solution, while pdfreader might be easier to get started with. You'll have to experiment and choose based on your project requirements.

Upvotes: 13

Related Questions