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.2.8 to 0.2.9

4

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

@@ -481,3 +481,4 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */

var itemNameStr = stringToPDFString(getInheritableProperty(annotation,'T') || '');
item.fullName = itemNameStr.replace(/[.\s]+/g, '_');
itemNameStr = itemNameStr.replace(/[.\s\W]+/g, '_'); //replace spaces and non-word character (not [^a-zA-Z0-9_]) with _
item.fullName = itemNameStr.replace(/^[\s_,:.;\/\\\d]+/, ''); //replace starting punctuation

@@ -484,0 +485,0 @@ var alternativeText = stringToPDFString(annotation.get('TU') || '');

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