Socket
Socket
Sign inDemoInstall

pdfreader

Package Overview
Dependencies
2
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 2.0.0

7

package.json
{
"name": "pdfreader",
"version": "1.4.0",
"version": "2.0.0",
"description": "Read text and parse tables from PDF files. Supports tabular data with automatic column detection, and rule-based parsing.",

@@ -41,3 +41,3 @@ "main": "index.js",

"dependencies": {
"pdf2json": "1.2.5"
"pdf2json": "2.0.1"
},

@@ -55,3 +55,6 @@ "devDependencies": {

"semantic-release": "^19.0.2"
},
"engines": {
"node": ">=14"
}
}

@@ -50,6 +50,9 @@ /**

itemHandler(null, { file: { path: pdfFilePath } });
var pdfParser = new PFParser();
var pdfParser;
if (this.options.password) {
pdfParser.setPassword(this.options.password);
pdfParser = new PFParser(null, null, this.options.password);
} else {
pdfParser = new PFParser();
}
pdfParser.on("pdfParser_dataError", itemHandler);

@@ -68,6 +71,9 @@ pdfParser.on("pdfParser_dataReady", function (pdfData) {

itemHandler(null, { file: { buffer: pdfBuffer } });
var pdfParser = new PFParser();
var pdfParser;
if (this.options.password) {
pdfParser.setPassword(this.options.password);
pdfParser = new PFParser(null, null, this.options.password);
} else {
pdfParser = new PFParser();
}
pdfParser.on("pdfParser_dataError", itemHandler);

@@ -74,0 +80,0 @@ pdfParser.on("pdfParser_dataReady", function (pdfData) {

@@ -9,4 +9,7 @@ # pdfreader ![Node CI](https://github.com/adrienjoly/npm-pdfreader/workflows/Node%20CI/badge.svg) [![Code Quality](https://api.codacy.com/project/badge/Grade/73d37dbb0ff84795acf65a55c5936d83)](https://app.codacy.com/gh/adrienjoly/npm-pdfreader?utm_source=github.com&utm_medium=referral&utm_content=adrienjoly/npm-pdfreader&utm_campaign=Badge_Grade)

ℹ️ This module is meant to be run using Node.js only. **It does not work from a web browser.**
ℹ️ Important notes:
- This module is meant to be run using Node.js only. **It does not work from a web browser.**
- This module extracts text entries from PDF files. It does not support photographed text. If you cannot select text from the PDF file, **you may need to use OCR software first**.
Summary:

@@ -13,0 +16,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc