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.1 to 0.3.2

5

lib/pdf.js

@@ -87,3 +87,4 @@ var nodeUtil = require("util"),

this.viewport = this.pdfPage.getViewport(this.scale, 0);
//leave out the 2nd parameter in order to use page's default rotation (for both portrait and landscape form)
this.viewport = this.pdfPage.getViewport(this.scale);

@@ -310,3 +311,3 @@ this.renderingState = RenderingStates.INITIAL;

if (id == self.pdfDocument.numPages - 1) {
if (id === (self.pdfDocument.numPages - 1) ) {
nodeUtil._logN.call(self, "complete parsing page:" + (id+1));

@@ -313,0 +314,0 @@ self.emit("pdfjs_parseDataReady", {Pages:self.pages, Width: self.pageWidth});

4

package.json
{
"name": "pdf2json",
"_id": "pdf2json@0.3.1",
"version": "0.3.1",
"_id": "pdf2json@0.3.2",
"version": "0.3.2",
"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