Comparing version 0.2.2 to 0.2.3
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29438066
29575