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 Apr 16, 2024 via pnpm

pdfjs-dist 2.9.359

Generic build of Mozilla's PDF.js library.
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
67
MIT
7
BSD-2-Clause
3
Apache-2.0
7
other licenses
BSD-3-Clause
3
ISC
3
CC-BY-4.0
1
Package created
22 Sep 2014
Version published
30 May 2021
Maintainers
3
Total deps
84
Direct deps
1
License
Apache-2.0

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: worker-loader@3.0.8
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: worker-loader@3.0.8
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
67 Packages, Including:
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/source-map@0.3.6
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@types/eslint-scope@3.7.7
@types/eslint@8.56.9
@types/estree@1.0.5
@types/json-schema@7.0.15
@types/node@20.12.7
@webassemblyjs/ast@1.12.1
@webassemblyjs/floating-point-hex-parser@1.11.6
@webassemblyjs/helper-api-error@1.11.6
@webassemblyjs/helper-buffer@1.12.1
@webassemblyjs/helper-numbers@1.11.6
@webassemblyjs/helper-wasm-bytecode@1.11.6
@webassemblyjs/helper-wasm-section@1.12.1
@webassemblyjs/ieee754@1.11.6
@webassemblyjs/utf8@1.11.6
@webassemblyjs/wasm-edit@1.12.1
@webassemblyjs/wasm-gen@1.12.1
@webassemblyjs/wasm-opt@1.12.1
@webassemblyjs/wasm-parser@1.12.1
@webassemblyjs/wast-printer@1.12.1
acorn-import-assertions@1.9.0
acorn@8.11.3
ajv-keywords@3.5.2
ajv@6.12.6
big.js@5.2.2
browserslist@4.23.0
buffer-from@1.1.2
chrome-trace-event@1.0.3
commander@2.20.3
emojis-list@3.0.0
enhanced-resolve@5.16.0
es-module-lexer@1.5.0
escalade@3.1.2
events@3.3.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
has-flag@4.0.0
jest-worker@27.5.1
json-parse-even-better-errors@2.3.1
json-schema-traverse@0.4.1
json5@2.2.3
loader-runner@4.3.0
loader-utils@2.0.4
merge-stream@2.0.0
mime-db@1.52.0

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@5.1.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
glob-to-regexp@0.4.1
terser@5.30.3
uri-js@4.4.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
3 Packages, Including:
@webassemblyjs/leb128@1.11.6
@xtuc/long@4.2.2
pdfjs-dist@2.9.359

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
3 Packages, Including:
@xtuc/ieee754@1.2.0
serialize-javascript@6.0.2
source-map@0.6.1

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
3 Packages, Including:
electron-to-chromium@1.4.737
graceful-fs@4.2.11
picocolors@1.0.0

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001610
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

1
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
worker-loader3.0.89.75 kBMIT
prod peer
1
1

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.