form-pdf2json
NodeJS library to convert pdf to json or vice versa
Last updated 5 months ago by clarekang89 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install form-pdf2json 
SYNC missed versions from official npm registry.

Form PDF2JSON

NPM GitHub package.json version

NodeJS library to convert JSON to PDF or vice versa (JSON to PDF or PDF to JSON)

Inspired from pdffiller.

Requirements

This is dependent on the PDF Toolkit library PDF ToolKit So you should install PDF Toolkit first.

Installation

// with npm
npm install --save-dev form-pdf2json

// with yarn
yarn add form-pdf2json

Definition

Name Desc Misc
FieldType Form Field Type One of Text, Choice, Button
FieldName Form Field Name Unique
FieldStateOption If FieldTypeis Button, actual value is FieldStateOption's value -
FieldValue - -

Usage

var pdf2json = require("form-pdf2json");

// or

import pdf2json from "form-pdf2json";

// => { convertPdf2Json: [Function], convertJson2Fdf: [Function], ... }

Commands

Convert to data

PDF to JSON

convertPdf2Json

pdf2json.convertPdf2Json("path/to/file");
// returns json data

JSON to FDF

convertJson2Fdf

pdf2json.convertJson2Fdf("path/to/file");
// returns fdf data

Export to file

PDF to JSON

exportPdf2Json

pdf2json.exportPdf2Json("path/to/file");
// export json file

JSON to PDF

exportJson2Pdf

pdf2json.exportJson2Pdf("path/to/file");
// export json file

PDF to FDF

exportPdf2Fdf

pdf2json.exportPdf2Fdf("path/to/file");
// export json file

Contributions

Feel free to contribute by posting issues or pull requests on form-pdf2json

Current Tags

  • 0.1.5                                ...           latest (5 months ago)

6 Versions

  • 0.1.5                                ...           5 months ago
  • 0.1.4                                ...           6 months ago
  • 0.1.3                                ...           6 months ago
  • 0.1.2                                ...           6 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 6
Last Week 6
Last Month 0
Dependencies (4)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |