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.6.4 to 0.6.5

19

lib/p2jcmd.js

@@ -29,4 +29,2 @@ 'use strict';

var _iChars = "!@#$%^&*()+=[]\\\';,/{}|\":<>?~`.-_ ";
var _continue = function(callback, err) {

@@ -158,3 +156,5 @@ if (err)

this.pdfParser.destroy();
if (this.pdfParser) {
this.pdfParser.destroy();
}
this.pdfParser = null;

@@ -170,11 +170,3 @@ this.curProcessor = null;

else {
var inputFile = path.basename(this.inputFile.toLowerCase(), '.pdf');
if (!inputFile || inputFile.length < 1 || _iChars.indexOf(inputFile.substr(0,1)) >= 0) {
nodeUtil.p2jinfo("Skipped: invalid filename: " + this.inputFile);
this.curProcessor.inputCount--;
_continue.call(this, callback);
}
else {
_parseOnePDF.call(this, callback);
}
_parseOnePDF.call(this, callback);
}

@@ -297,4 +289,5 @@ };

fs.readdir(inputDir, function(err, files) {
var _iChars = "!@#$%^&*()+=[]\\\';,/{}|\":<>?~`.-_ ";
var pdfFiles = files.filter(function(file) {
return file.substr(-4).toLowerCase() === '.pdf';
return file.substr(-4).toLowerCase() === '.pdf' && _iChars.indexOf(file.substr(0,1)) < 0;
});

@@ -301,0 +294,0 @@

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

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