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.4.6 to 0.4.7

3

lib/pdffield.js

@@ -118,6 +118,7 @@ var nodeUtil = require("util"),

var attributeMask = 0;
//PDF Spec p.676 TABLE 8.70 Field flags common to all field types
if (field.flags & 0x00000001) {
attributeMask |= kFBANotOverridable;
}
else if (field.flags & 0x00000010) {
if (field.flags & 0x00000002) {
attributeMask |= kFBARequired;

@@ -124,0 +125,0 @@ }

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

@@ -378,3 +378,3 @@ Introduction

v0.2.2 added support for "field attribute mask", it'd be common for all fields, form author can set it in Acrobat Pro's Form Editing mode: if a field is ReadOnly, it's AM field will be set as 0x00000400, otherwise AM will be set as 0.
Anpther supported field attributes is "required": when form author mark a field is "required" in Acrobat, the parsing result for 'AM" will have the 1st bit set (0x00000010).
Another supported field attributes is "required": when form author mark a field is "required" in Acrobat, the parsing result for 'AM' will be set as 0x00000010.

@@ -381,0 +381,0 @@ "Read-Only" filed attribute mask example:

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