pdf-gold-digger
Pdf information extraction library based on pdf.js and node.js with various output formats.
Install
npm install -g pdf-gold-digger
Usage
pdfdig -i some_file.pdf
Avaliable commands
pdfdig -hex. pdfdig -i input-file -o output_directory -f json --input or -i pdf file location --output or -o pdf file location --debug or -d show debug information --format or -f format - --font or -t extract fonts as ttf files --password or -p password --help or -h display this help message --version or -v display version information
Advanced usage
git clone https://github.com/vane/pdf-gold-diggersh demo.sh
and see results in out
directory
Documentation
Features:
- extract text
- separate each page
- separate each line
- separate font information
- extract images
- output formats
- text
-f text (default)
- json
-f json
- xml
-f xml
- html
-f html
- text
- specify output directory
TODO:
- load pdf from remote location
- from url
- output to markdown format
- pack output to zip
- extract tables
- extract forms
- extract drawings
- extract text from glyphs
- ability to provide input file for glyph path to letter
- detect when unicode is not provided or mangled
- get bounding box from text and draw it on canvas
- use tesseract.js as optional fallback