Extract data from pdf
Go to file
2019-07-23 08:55:39 +02:00
bin Fix missing pdfdig shebang 2019-07-23 00:26:04 +02:00
src Add todo to Extract 2019-07-23 06:12:55 +02:00
.esdoc.json Documentation generate scripts 2019-07-23 01:19:17 +02:00
.gitignore Add demo.sh and test.sh for automating stuff 2019-07-23 01:59:55 +02:00
demo.sh Extract images with VisitorImage #2 2019-07-23 04:53:17 +02:00
gd.js Change output directory structure / Closes #2 2019-07-23 05:00:53 +02:00
LICENSE Add LICENSE, README update package.json with valid repository url 2019-07-22 20:20:37 +02:00
package.json Version 0.0.4 2019-07-23 06:18:00 +02:00
README.md Update README.md 2019-07-23 08:55:39 +02:00
test.sh Extract images with VisitorImage #2 2019-07-23 04:53:17 +02:00

pdf-gold-digger

Pdf information extraction library based on pdf.js and node.js.

Install

npm install -g pdf-gold-digger

Usage

pdfdig -i some_file.pdf for help use :
pdfdig -h

ex. pdfdig -i input-file -o output_directory -f json
  
  --input  or  -i   pdf file location (required)
  --output or  -o   pdf file location (optional default "out")
  --debug  or  -d   show debug information (optional - default "false")
  --format or  -f   format (optional - default "text") - ("text,json"): 
  --help   or  -h   display this help message

Documentation url

pdf-gold-digger

or test by clonning repository

git clone https://github.com/vane/pdf-gold-digger
then run
sh demo.sh
and see results in out directory

Work in progress

Supports:

  • extract text
    • separate each page
    • separate each line
    • separate font information
    • bounding box position (probably buggy now)
  • extract images
  • output to text -f text (default)
  • output to json -f json
  • specify output directory

TODO:

  • load pdf from remote location
    • from url
  • output to xml format
  • output to html format
  • output to zip
  • extract font
  • extract tables
  • advanced font information
  • extract forms
  • extract drawings