Comparing version 0.3.7 to 0.3.8
@@ -147,3 +147,3 @@ 'use strict'; | ||
var PDFProcessor = (function () { | ||
var _PRO_TIMER = "pdf2json transcoder"; | ||
var _PRO_TIMER = pkInfo._id + " transcoder"; | ||
@@ -210,3 +210,3 @@ // constructor | ||
cls.prototype.complete = function(err) { | ||
var statusMsg = "\n\n%d input files\t%d success\t%d fail\t%d warning.\n"; | ||
var statusMsg = "\n%d input files\t%d success\t%d fail\t%d warning."; | ||
console.log(statusMsg, this.inputCount, this.successCount, this.failedCount, this.warningCount); | ||
@@ -213,0 +213,0 @@ |
{ | ||
"name": "pdf2json", | ||
"_id": "pdf2json@0.3.7", | ||
"version": "0.3.7", | ||
"_id": "pdf2json@0.3.8", | ||
"version": "0.3.8", | ||
"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": [ |
@@ -323,4 +323,4 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
if (!aa) { | ||
if (item.fullName.toLowerCase().indexOf('ssn') > 0) | ||
item.TName = AFSpecial_Format[3]; // 'ssn' | ||
// if (item.fullName.toLowerCase().indexOf('ssn') > 0) | ||
// item.TName = AFSpecial_Format[3]; // 'ssn' | ||
return; | ||
@@ -331,4 +331,7 @@ } | ||
var nVal = aa.get('F'); | ||
if (!nVal) | ||
return; | ||
if (!nVal) { | ||
nVal = aa.get('K'); | ||
if (!nVal) | ||
return; | ||
} | ||
@@ -364,3 +367,2 @@ nVal.forEach(function(key, value){ | ||
// console.log(item.fullName + " : " + funcName + " => " + funcParam); | ||
// var nfs = null; | ||
switch(funcName) { | ||
@@ -378,3 +380,2 @@ case 'AFSpecial_Format': | ||
item.TName = 'number'; | ||
// console.log(item.fullName + " : AFNumber_Format : " + item.TName); | ||
break; | ||
@@ -384,2 +385,11 @@ case 'AFDate_FormatEx': | ||
break; | ||
case 'AFSpecial_KeystrokeEx': //special format: "arbitrary mask" | ||
if (funcParam == '"99999"') { | ||
item.TName = 'pin5'; //5 digit PIN field | ||
} | ||
else if (funcParam == '"999999999"') { | ||
item.TName = 'rtn'; //9 digit routing number field | ||
} | ||
console.log(item.fullName + " : " + funcParam + " => " + item.TName); | ||
break; | ||
} | ||
@@ -386,0 +396,0 @@ } |
@@ -406,2 +406,6 @@ Introduction | ||
v0.3.8 added two more field formatter types detection for | ||
* pin5: 5 digit PIN field | ||
* rtn: 9 digit routing number | ||
About 5 types are detected only when the widget field type is "Tx" and the additional-actions dictionary 'AA' is set. Like what you see, not all pre-defined formatters and special formatters are supported, if you need more support, you can extend the 'processFieldAttribute' function in core.js file. | ||
@@ -408,0 +412,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
3254955
35686
609