Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 29, 2024 via pnpm

pdfjs-dist 2.3.200

Generic build of Mozilla's PDF.js library.
Package summary
Share
12
issues
8
high severity
vulnerability
1
meta
7
4
moderate severity
meta
4
8
licenses
275
MIT
36
ISC
7
BSD-2-Clause
11
other licenses
BSD-3-Clause
6
Apache-2.0
2
(MIT OR Apache-2.0)
1
(MIT AND Zlib)
1
+ 1 more
Package created
22 Sep 2014
Version published
3 Oct 2019
Maintainers
3
Total deps
329
Direct deps
3
License
Apache-2.0

Issues

12

8 high severity issues

high
Recommendation: Upgrade to version 5.1.2 or later
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
Collapse
Expand

4 moderate severity issues

moderate
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
via: webpack@4.47.0 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
275 Packages, Including:
@webassemblyjs/ast@1.9.0
@webassemblyjs/floating-point-hex-parser@1.9.0
@webassemblyjs/helper-api-error@1.9.0
@webassemblyjs/helper-buffer@1.9.0
@webassemblyjs/helper-code-frame@1.9.0
@webassemblyjs/helper-module-context@1.9.0
@webassemblyjs/helper-wasm-bytecode@1.9.0
@webassemblyjs/helper-wasm-section@1.9.0
@webassemblyjs/ieee754@1.9.0
@webassemblyjs/leb128@1.9.0
@webassemblyjs/utf8@1.9.0
@webassemblyjs/wasm-edit@1.9.0
@webassemblyjs/wasm-gen@1.9.0
@webassemblyjs/wasm-opt@1.9.0
@webassemblyjs/wasm-parser@1.9.0
@webassemblyjs/wast-parser@1.9.0
@webassemblyjs/wast-printer@1.9.0
acorn@6.4.2
acorn@8.11.3
ajv-errors@1.0.1
ajv-keywords@3.5.2
ajv@6.12.6
arr-diff@4.0.0
arr-flatten@1.1.0
arr-union@3.1.0
array-unique@0.3.2
asn1.js@5.4.1
assert@1.5.1
assign-symbols@1.0.0
async-each@1.0.6
balanced-match@1.0.2
base64-js@1.5.1
base@0.11.2
big.js@5.2.2
binary-extensions@1.13.1
binary-extensions@2.2.0
bindings@1.5.0
bluebird@3.7.2
bn.js@4.12.0
bn.js@5.2.1
brace-expansion@1.1.11
braces@2.3.2
braces@3.0.2
brorand@1.1.0
browserify-aes@1.2.0
browserify-cipher@1.0.1
browserify-des@1.0.2
browserify-rsa@4.1.0
browserify-zlib@0.2.0
buffer-from@1.1.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
36 Packages, Including:
@webassemblyjs/helper-fsm@1.9.0
anymatch@2.0.0
anymatch@3.1.3
aproba@1.2.0
browserify-sign@4.2.2
cacache@12.0.4
chownr@1.1.4
copy-concurrently@1.0.5
figgy-pudding@3.5.2
fs-write-stream-atomic@1.0.10
fs.realpath@1.0.0
glob-parent@3.1.0
glob-parent@5.1.2
glob@7.2.3
graceful-fs@4.2.11
infer-owner@1.0.4
inflight@1.0.6
inherits@2.0.3
inherits@2.0.4
lru-cache@5.1.1
minimalistic-assert@1.0.1
minimatch@3.1.2
move-concurrently@1.0.1
once@1.4.0
parse-asn1@5.1.6
promise-inflight@1.0.1
remove-trailing-separator@1.1.0
rimraf@2.7.1
run-queue@1.0.3
semver@5.7.2
ssri@6.0.2
unique-filename@1.1.1
unique-slug@2.0.2
wrappy@1.0.2
y18n@4.0.3
yallist@3.1.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
eslint-scope@4.0.3
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
mississippi@3.0.0
terser@4.8.1
uri-js@4.4.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
@xtuc/ieee754@1.2.0
ieee754@1.2.1
qs@6.11.2
serialize-javascript@4.0.0
source-map@0.5.7
source-map@0.6.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
@xtuc/long@4.2.2
pdfjs-dist@2.3.200

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
atob@2.1.2

(MIT AND Zlib)

Permissive
1 Packages, Including:
pako@1.0.11

(MIT AND BSD-3-Clause)

Permissive
1 Packages, Including:
sha.js@2.4.11
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of pdfjs-dist 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
node-ensure0.0.01.78 kBMIT
prod
webpack4.47.0304.77 kBMIT
prod peer
8
4
worker-loader2.0.06.34 kBMIT
prod
8
4

Visualizations

Frequently Asked Questions

What does pdfjs-dist do?

"pdfjs-dist" is a pre-generated build of Mozilla's PDF.js library. It's designed to parse and render Portable Document Format (PDF) files by utilizing the web standards-based platform of HTML5. The goal of this library is to offer a general solution for handling PDFs in various applications. As it's automatically generated, it saves developers the time and effort of creating their own implementation of the PDF.js source code.

How do you use pdfjs-dist?

To use the "pdfjs-dist" npm package, you need to install it first in your project using the command npm install pdfjs-dist. Regarding the implementation, here is a basic usage example:

var pdfjsLib = require('pdfjs-dist');
var pdfPath = 'path_to_your_pdf_file.pdf';

pdfjsLib.getDocument(pdfPath).promise.then(function(doc) {
  var totalPages = doc.numPages;
  console.log('The document has ' + totalPages + ' page(s).');
});

This code essentially loads a PDF document and logs out the number of pages it contains. Note that you need to replace 'path_to_your_pdf_file.pdf' with the actual path of your PDF file.

Where are the pdfjs-dist docs?

The "pdfjs-dist" documentation, as well as useful information for learning and contributing, can be found at the PDF.js GitHub page. Further support for dealing with older browsers/environments and usage of the legacy/ folder is available on the Frequently Asked Questions wiki page.