Comparing version 0.5.0 to 0.5.1
@@ -12,2 +12,3 @@ var nodeUtil = require("util"), | ||
var _boldSubNames = ["bd", "bold", "demi", "black"]; | ||
var _stdFonts = ["quicktype","arial","helvetica","sans-serif","quicktypepi", "courier","monospace", "ocr", "roman"]; | ||
@@ -72,3 +73,3 @@ var _kFontFaces = [ | ||
[2, 14, 0, 0], //45 | ||
[2, 12, 0, 0], //46 MQZ: Changed font size from 18 tp 12 | ||
[2, 18, 0, 0], //46 | ||
[3, 8, 0, 0], //47 | ||
@@ -109,4 +110,10 @@ [3, 10, 0, 0], //48 | ||
if (this.fontObj.isSymbolicFont) { | ||
if (typeName.indexOf("arial") > 0) | ||
var mFonts = _.filter(_stdFonts, function(oneName){ | ||
return (typeName.indexOf(oneName) >= 0); | ||
}, this); | ||
if (mFonts.length > 0) { | ||
this.fontObj.isSymbolicFont = false; //lots of Arial-based font is detected as symbol in VA forms (301, 76-c, etc.) reset the flag for now | ||
} | ||
} | ||
@@ -216,3 +223,3 @@ else { | ||
case 52: retVal = '\u25b6'; break; //right triangle. sample: dc_scr_fr147 item4 | ||
case 70: retVal = '\u007D'; break; //right curly bracket | ||
case 70: retVal = (this.fontObj.type === "CIDFontType0") ? '\u26A0' : '\u007D'; break; //exclaimation in triangle OR right curly bracket | ||
case 71: retVal = '\u25b6'; break; //right triangle | ||
@@ -229,4 +236,4 @@ case 97: retVal = '\u25b6'; break; //right triangle | ||
default: | ||
nodeUtil._logN.call(this, "Default - SymbolicFont - (" + this.fontObj.name + ") : " + | ||
str.charCodeAt(0) + "::" + str.charCodeAt(1) + " => " + retVal + " length = " + str.length); | ||
nodeUtil._logN.call(this, this.fontObj.type + " - SymbolicFont - (" + this.fontObj.name + ") : " + | ||
str.charCodeAt(0) + "::" + str.charCodeAt(1) + " => " + retVal); | ||
} | ||
@@ -233,0 +240,0 @@ |
{ | ||
"name": "pdf2json", | ||
"_id": "pdf2json@0.5.0", | ||
"version": "0.5.0", | ||
"_id": "pdf2json@0.5.1", | ||
"version": "0.5.1", | ||
"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
3262031
35858