Socket
Socket
Sign inDemoInstall

@4tw/vue-cli-plugin-pdfjs-viewer

Package Overview
Dependencies
0
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @4tw/vue-cli-plugin-pdfjs-viewer

Mozilla's pdf.js viewer.html


Version published
Weekly downloads
58
increased by61.11%
Maintainers
8
Created
Weekly downloads
 

Readme

Source

vue-cli-plugin-pdfjs-viewer

The mozilla pdf.js viewer as an NPM package.

Usage

This vue-cli plugin will copy all the required pdf.js files into the public folder. The viewer will then be available under the following URL: {BASE_URL}/pdfjs/web/viewer.html?file=/example.pdf.

By providing a value for pdfjsPath under pluginOptions the default target path can be overridden. For example by setting the path to public/assets/pdfjs the pdf.js files will be available under {BASE_URL}/assets/pdfjs/web/viewer.html?file=/example.pdf.

Updating

In order to update the viewer, pdf.js needs to be built and copied into the assets folder.

FAQs

Last updated on 11 Apr 2024

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