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.0 to 0.3.1

5

lib/pdf.js

@@ -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 @@

7

lib/pdffield.js

@@ -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;

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