parse-pdf
Version:
Get text content and metadata about pdf
20 lines (14 loc) • 676 B
Markdown
# parse-pdf
[](https://npmjs.com/package/parse-pdf)
[](http://opensource.org/licenses/MIT)
[](https://travis-ci.org/bjrmatos/parse-pdf)
> **Get text content and metadata about pdf**
## Usage
```js
const fs = require('fs')
const parsePdf = require('parse-pdf')
const parsed = await parsePdf(fs.readFileSync('some-pdf-file.pdf'))
console.log(parsed.pages[0].text)
```
## License
See [license](https://github.com/bjrmatos/parse-pdf/blob/master/LICENSE)