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 Mar 21, 2024 via pnpm

pdfjs-dist 3.10.111

Generic build of Mozilla's PDF.js library.
Package summary
Share
1
issue
1
high severity
meta
1
5
licenses
33
MIT
29
ISC
2
Apache-2.0
2
other licenses
BSD-3-Clause
1
BSD-2-Clause
1
Package created
22 Sep 2014
Version published
27 Aug 2023
Maintainers
3
Total deps
66
Direct deps
2
License
Apache-2.0

Issues

1

1 high severity issue

high
via: canvas@2.11.2
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
33 Packages, Including:
agent-base@6.0.2
ansi-regex@5.0.1
balanced-match@1.0.2
brace-expansion@1.1.11
canvas@2.11.2
concat-map@0.0.1
debug@4.3.4
decompress-response@4.2.1
delegates@1.0.0
emoji-regex@8.0.0
https-proxy-agent@5.0.1
is-fullwidth-code-point@3.0.0
make-dir@3.1.0
mimic-response@2.1.0
minizlib@2.1.2
mkdirp@1.0.4
ms@2.1.2
nan@2.19.0
node-fetch@2.7.0
object-assign@4.1.1
path-is-absolute@1.0.1
path2d-polyfill@2.1.1
path2d@0.1.1
readable-stream@3.6.2
safe-buffer@5.2.1
simple-concat@1.0.1
simple-get@3.1.1
string-width@4.2.3
string_decoder@1.3.0
strip-ansi@6.0.1
tr46@0.0.3
util-deprecate@1.0.2
whatwg-url@5.0.0

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
29 Packages, Including:
abbrev@1.1.1
aproba@2.0.0
are-we-there-yet@2.0.0
chownr@2.0.0
color-support@1.1.3
console-control-strings@1.1.0
fs-minipass@2.1.0
fs.realpath@1.0.0
gauge@3.0.2
glob@7.2.3
has-unicode@2.0.1
inflight@1.0.6
inherits@2.0.4
lru-cache@6.0.0
minimatch@3.1.2
minipass@3.3.6
minipass@5.0.0
nopt@5.0.0
npmlog@5.0.1
once@1.4.0
rimraf@3.0.2
semver@6.3.1
semver@7.6.0
set-blocking@2.0.0
signal-exit@3.0.7
tar@6.2.0
wide-align@1.1.5
wrappy@1.0.2
yallist@4.0.0

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:
detect-libc@2.0.3
pdfjs-dist@3.10.111

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
1 Packages, Including:
@mapbox/node-pre-gyp@1.0.11

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
1 Packages, Including:
webidl-conversions@3.0.1
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

2
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
canvas2.11.2123 kBMIT
prod optional
1
path2d-polyfill2.1.110.43 kBMIT
prod optional

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.