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 3.0.2 to 3.0.3

pdfparser.d.ts

9

package.json
{
"name": "pdf2json",
"version": "3.0.2",
"version": "3.0.3",
"description": "PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js",

@@ -30,5 +30,6 @@ "keywords": [

"main": "./pdfparser.js",
"typings": "./pdfparser.d.ts",
"scripts": {
"test": "cd ./test && sh p2j.forms.sh",
"test-misc": "cd ./test && sh p2j.one.sh misc . \"Expected: 5 success, 3 exception with stack trace\" ",
"test-misc": "cd ./test && sh p2j.one.sh misc . \"Expected: 6 success, 3 fail exception with stack trace\" ",
"parse": "node --trace-deprecation --trace-warnings pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form",

@@ -58,3 +59,5 @@ "parse-s": "node --trace-deprecation --trace-warnings pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s",

},
"devDependencies": {},
"devDependencies": {
"@types/node": "^18.7.18"
},
"bundledDependencies": [

@@ -61,0 +64,0 @@ "@xmldom/xmldom"

@@ -54,3 +54,3 @@ # pdf2json

import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

@@ -89,3 +89,3 @@ const pdfParser = new PDFParser();

import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

@@ -106,3 +106,3 @@ const pdfParser = new PDFParser(this,1);

import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

@@ -123,3 +123,3 @@ const pdfParser = new PDFParser();

import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

@@ -126,0 +126,0 @@ const inputStream = fs.createReadStream("./pdf2json/test/pdf/fd/form/F1040EZ.pdf", {bufferSize: 64 * 1024});

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