Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf2json

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf2json - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

14

lib/p2jcmd.js

@@ -37,6 +37,6 @@ 'use strict';

console.log("\n" + self.inputFile + " => " + self.outputFile + " Error: " + err);
curProcessor.failedCount++
self.curProcessor.failedCount++;
} else {
console.log("\n" + self.inputFile + " => " + self.outputFile + " [" + self.outputDir + "] OK");
curProcessor.successCount++;
self.curProcessor.successCount++;
}

@@ -69,3 +69,3 @@ _continue.call(self, callback, err);

// constructor
var cls = function (inputDir, inputFile) {
var cls = function (inputDir, inputFile, curProcessor) {
// public, this instance copies

@@ -81,2 +81,3 @@ this.inputDir = path.normalize(inputDir);

this.pdfParser = null;
this.curProcessor = curProcessor;
};

@@ -129,2 +130,3 @@

this.pdfParser = null;
this.curProcessor = null;
};

@@ -222,3 +224,3 @@

this.inputCount = 1;
this.p2j = new PDF2JSONUtil(inputDir, inputFile);
this.p2j = new PDF2JSONUtil(inputDir, inputFile, this);
this.p2j.processFile(_.bind(this.complete, this));

@@ -231,3 +233,3 @@ };

self.p2j = new PDF2JSONUtil(inputDir, files[fId]);
self.p2j = new PDF2JSONUtil(inputDir, files[fId], self);
self.p2j.processFile( function processPDFFile(err) {

@@ -248,3 +250,3 @@ if (err) {

self.p2j = new PDF2JSONUtil(inputDir, files[fId]);
self.p2j = new PDF2JSONUtil(inputDir, files[fId], self);
self.p2j.processFile(processPDFFile);

@@ -251,0 +253,0 @@ }

{
"name": "pdf2json",
"_id": "pdf2json@0.2.2",
"version": "0.2.2",
"_id": "pdf2json@0.2.3",
"version": "0.2.3",
"description": "A PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js",

@@ -6,0 +6,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc