0.2.1 • Published 6 years ago

pdf-text-parser v0.2.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

PDF Text Parser

Version Downloads Downloads/week License

Parses PDF's text in a nice and simple format

Usage

const fs = require('fs')
const pdfParser = require('pdf-text-parser');

const pdfData = fs.readFileSync('file.pdf');
pdfParser(pdfData)
  .then(parsedText => console.log(parsedText));

CLI Usage

$ pdf-text-parser file.pdf

Output Format

{
   "metadata":{
      "Title":"Example Output"
   },
   "pages":[
      [
         "Fist Page"
      ],
      [
         "Second Page"
      ]
   ]
}