Convert pdftk output HTML into JSON
$ npm install --save pdftk2json
$ pdftk2json examples/small.html div > small.json
Type: string
The path to your file, not including __dirname
.
Type: string
Your node type to look for, such as span
or div
.
$ npm install --global pdftk2json
$ pdftk2json --help
Usage
pdftk2json [input] [node]
Examples
$ pdftk2json examples/small.html div
[{"_":"kitty","style":{"color":"yellow"}}]
MIT © Richard Littauer