Socket
Socket
Sign inDemoInstall

pdfjs-viewer-element

Package Overview
Dependencies
0
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pdfjs-viewer-element

A web component for [PDF.js viewer](https://mozilla.github.io/pdf.js/web/viewer.html). See [demo](https://alekswebnet.github.io/pdfjs-viewer-element/index.html).


Version published
Weekly downloads
313
increased by4.33%
Maintainers
1
Install size
14.9 MB
Created
Weekly downloads
 

Readme

Source

pdfjs-viewer-element

A web component for PDF.js viewer. See demo.

⚠️ pdfjs-viewer-element uses PDF.js prebuilt, that includes the generic build of PDF.js and the viewer. To use the package you should to extract the prebuilt file into a public directory of your project.

Install

npm install --save pdfjs-viewer-element

or

yarn add pdfjs-viewer-element

Usage

Import to your project:

import 'pdfjs-viewer-element'

Extract the PDF.js prebuilt. See example.

Use the element inside your template:

<pdfjs-viewer-element 
  src="/pdfjs-2.15.349-dist/web/compressed.tracemonkey-pldi-09.pdf"
  height="100vh">
</pdfjs-viewer-element>

License

MIT

Keywords

FAQs

Last updated on 13 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc