Negatively Proportional Model

    parsextract

    0.0.2 • Public • Published

    parsextract-node

    NPM Version

    A node.js client library for the Securibox ParseXtract API

    The ParseXtract API allows you to train and extract data in PDF document and transform it in a JSON structured format.

    Install

    $ npm install parsextract

    Parsing a document

    const ParseXtract = require('parsextract');
     
    var client = new ParseXtract.Client("Client_Id", "Client_Secret");
    let base64EncodedFile = fs.readFileSync('C:\\Path\\To\\file.pdf', { encoding: 'base64' });
    client.parse({
        fileName: 'file.pdf',
        base64Content: base64EncodedFile
    }, function(err, res){
        if(err !== null || err !== undefined){
            throw err;
        }
        console.log(res);
    });

    Callbacks

    All callbacks are in the form:

    function callback(err, response) {
      // err can be a network error or a Securibox API error.
    }

    License

    GNU GPL

    Install

    npm i parsextract

    DownloadsWeekly Downloads

    0

    Version

    0.0.2

    License

    none

    Unpacked Size

    40.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • securibox