Comparing version 0.3.0 to 0.3.1
@@ -9,3 +9,4 @@ var nodeUtil = require("util"), | ||
PDFField = require('./pdffield.js'), | ||
Image = require('./pdfimage.js'); | ||
Image = require('./pdfimage.js'), | ||
pkInfo = require('../package.json'); | ||
@@ -284,3 +285,3 @@ var _pdfjsFiles = [ | ||
self.emit("pdfjs_parseDataReady", {Agency:pdfTile, Id: formAttr}); | ||
self.emit("pdfjs_parseDataReady", {Transcoder: pkInfo._id, Agency:pdfTile, Id: formAttr}); | ||
}; | ||
@@ -287,0 +288,0 @@ |
@@ -107,4 +107,8 @@ var nodeUtil = require("util"), | ||
var height = rect[3] - rect[1]; | ||
if (field.fieldType === 'Tx') { | ||
rect[1] += 2; | ||
if (height > kMinHeight + 2) { | ||
rect[1] += 2; | ||
height -= 2; | ||
} | ||
} | ||
@@ -115,3 +119,2 @@ else if (field.fieldType !== 'Ch') { //checkbox, radio button, and link button | ||
var height = rect[3] - rect[1]; | ||
height = (height >= kMinHeight) ? height : kMinHeight; | ||
@@ -118,0 +121,0 @@ |
@@ -216,2 +216,3 @@ var nodeUtil = require("util"), | ||
case 103: retVal = '\u27A8'; break; //right arrow. sample: va_ind_760pff and pmt | ||
case 115: retVal = '\u25b2'; break; //up triangle | ||
case 118: retVal = '\u2022'; break; //Bullet dot | ||
@@ -218,0 +219,0 @@ case 106: retVal = ''; break; //VA 301: string j character by the checkbox, hide it for now |
{ | ||
"name": "pdf2json", | ||
"_id": "pdf2json@0.3.0", | ||
"version": "0.3.0", | ||
"_id": "pdf2json@0.3.1", | ||
"version": "0.3.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": [ |
@@ -51,2 +51,3 @@ Introduction | ||
* 'Agency': the main text identifier for the PDF document. If Id.AgencyId present, it'll be same, otherwise it'll be set as document title; | ||
* 'Transcoder': pdf2json version number | ||
* 'Id': the XML meta data that embedded in PDF document | ||
@@ -53,0 +54,0 @@ * all forms attributes metadata are defined in "Custom" tab of "Document Properties" dialog in Acrobat Pro; |
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
3252421
35647
594