Comparing version 0.3.3 to 0.3.4
@@ -56,2 +56,3 @@ 'use strict'; | ||
else { | ||
self.curProcessor.failedCount++; | ||
_continue.call(self, callback, "Transcoder error: empty parsing result - " + self.inputPath); | ||
@@ -62,2 +63,3 @@ } | ||
self.pdfParser.on("pdfParser_dataError", function (evtData) { | ||
self.curProcessor.failedCount++; | ||
var errMsg = "Transcoder error:\n" + evtData.data; | ||
@@ -105,3 +107,3 @@ _continue.call(self, callback, errMsg); | ||
if (fs.existsSync(this.outputPath)) | ||
console.log("\n\nOutput file will be replaced - " + this.outputPath); | ||
console.log("\nOutput file will be replaced - " + this.outputPath); | ||
else { | ||
@@ -112,3 +114,3 @@ var fod = fs.openSync(this.outputPath, "wx"); | ||
else { | ||
console.log("\n\nTranscoding " + this.inputFile + " to - " + this.outputPath); | ||
console.log("\nTranscoding " + this.inputFile + " to - " + this.outputPath); | ||
fs.closeSync(fod); | ||
@@ -193,3 +195,3 @@ fs.unlinkSync(this.outputPath); | ||
try { | ||
console.log(pkInfo._id + " - https://github.com/modesty/pdf2json"); | ||
console.log("\n" + pkInfo._id + " - https://github.com/modesty/pdf2json"); | ||
@@ -196,0 +198,0 @@ var inputStatus = fs.statSync(argv.f); |
@@ -10,2 +10,3 @@ var nodeUtil = require("util"), | ||
var _name = 'PDFField'; | ||
var _tabIndex = 0; | ||
@@ -140,3 +141,3 @@ var kFBANotOverridable = 0x00000400; // indicates the field is read only by the user | ||
id: { Id: field.fullName, EN: 0}, | ||
TI: 0, | ||
TI: field.TI, | ||
AM: attributeMask | ||
@@ -228,2 +229,4 @@ }, _getFieldPosition.call(this, field)); | ||
this.field.TI = _tabIndex++; | ||
switch(this.field.fieldType) { | ||
@@ -230,0 +233,0 @@ case 'Tx': _addAlpha.call(this, this.field); break; |
{ | ||
"name": "pdf2json", | ||
"_id": "pdf2json@0.3.3", | ||
"version": "0.3.3", | ||
"_id": "pdf2json@0.3.4", | ||
"version": "0.3.4", | ||
"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": [ |
@@ -12,2 +12,8 @@ Introduction | ||
Or, install it globally: | ||
>sudo npm install pdf2json -g | ||
To update with latest version: | ||
>sudo npm update pdf2json -g | ||
Example | ||
@@ -14,0 +20,0 @@ ==== |
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
3253031
35658
600