Skip to content

RichardLitt/pdftk-2-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdftk2json Build Status

Convert pdftk output HTML into JSON

Install

$ npm install --save pdftk2json

Usage

$ pdftk2json examples/small.html div > small.json

API

pdftk2json(input, node)

input

Type: string

The path to your file, not including __dirname.

node

Type: string

Your node type to look for, such as span or div.

CLI

$ npm install --global pdftk2json
$ pdftk2json --help

  Usage
    pdftk2json [input] [node]


  Examples
    $ pdftk2json examples/small.html div
    [{"_":"kitty","style":{"color":"yellow"}}]

License

MIT © Richard Littauer

About

Convert pdftk output HTML into JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published