Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf2json

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf2json - npm Package Compare versions

Comparing version 0.3.9 to 0.4.0

4

lib/p2jcmd.js

@@ -95,4 +95,6 @@ 'use strict';

if (retVal != null)
if (retVal != null) {
this.curProcessor.failedCount += 1;
return retVal;
}

@@ -99,0 +101,0 @@ var inExtName = path.extname(this.inputFile).toLowerCase();

@@ -20,3 +20,2 @@ var nodeUtil = require("util"),

}
// console.log("nVal KV = " + key +", " + value);
});

@@ -32,3 +31,2 @@

item.value = mk.get('CA') || '';
// console.log("Button label:" + item.value);

@@ -41,3 +39,2 @@ //button action: url when mouse up: PDF Spec:p.642

item.FL = ap.get(sp.name);
// console.log("Button href:" + item.FL);
}

@@ -57,7 +54,3 @@ }

item.value = key;
// console.log("nVal KV = " + key +", " + value);
});
//initial selection state
// console.log("CheckBox V = " + item.value);
}

@@ -75,4 +68,2 @@

if (!aa) {
// if (item.fullName.toLowerCase().indexOf('ssn') > 0)
// item.TName = AFSpecial_Format[3]; // 'ssn'
return;

@@ -107,3 +98,2 @@ }

function processFieldAttribute(jsFuncName, item) {
// console.log(item.fullName + " : value = " + jsFuncName);
if (item.hasOwnProperty('TName'))

@@ -138,3 +128,2 @@ return;

item.MV = maskValue;
console.log(item.fullName + " : " + item.TName + " => " + item.MV);
}

@@ -141,0 +130,0 @@ break;

@@ -161,2 +161,5 @@ var nodeUtil = require("util"),

}
if (field.V) {
anData.V = field.V; //read-only field value, like "self-prepared"
}

@@ -166,3 +169,2 @@ this.Fields.push(anData);

var _addCheckBox = function(box) {

@@ -169,0 +171,0 @@ var anData = _.extend({

{
"name": "pdf2json",
"_id": "pdf2json@0.3.9",
"version": "0.3.9",
"_id": "pdf2json@0.4.0",
"version": "0.4.0",
"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": [

@@ -369,2 +369,7 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */

//MQZ.Sep.19.2012: adding field value
if (item.fieldType == 'Tx') {
var fieldValue = stringToPDFString(getInheritableProperty(annotation,'V') || '');
if (fieldValue.length > 0)
item.V = fieldValue;
}
PDFAnno.processAnnotation(annotation, item);

@@ -371,0 +376,0 @@ break;

@@ -315,3 +315,4 @@ Introduction

w: 30.94,
h: 0.85
h: 0.85,
V: "field value" //only availabe when the text input box has value
},

@@ -318,0 +319,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc