Giter Site home page Giter Site logo

pdf2json's Introduction

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

pdf2json's People

Contributors

luckysymb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.