Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-pdfjs-viewer

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pdfjs-viewer - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

package.json
{
"name": "ng2-pdfjs-viewer",
"version": "0.1.6",
"version": "0.1.7",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -5,22 +5,22 @@ # ng2-pdfjs-viewer

## Step 1: To use this library you need a copy ofpdfjs/ viewerJs/viewer.html
## Step 1: To use this library you need a copy of pdfjs
A. Using pdf-js-gh-pages
⋅⋅⋅a. Download pdfjs-gh-pages from here: https://github.com/mozilla/pdf.js/archive/gh-pages.zip and extract it.
⋅⋅⋅b. Create a `pdfjs` folder under your angular2+ applications `assets` folder
⋅⋅⋅c. Copy `pdf.js-gh-pages/build` and `pdf.js-gh-pages/web` folders from extracted package to `pdfjs` folder.
⋅⋅⋅d. The web/ directory contains a 1 MB PDF file called "compressed.tracemonkey-pldi-09.pdf". This file is a sample and can safely be removed.
###A. Using pdf-js-gh-pages
a. Download pdfjs-gh-pages from here: https://github.com/mozilla/pdf.js/archive/gh-pages.zip and extract it.
b. Create a `pdfjs` folder under your angular2+ applications `assets` folder
c. Copy `pdf.js-gh-pages/build` and `pdf.js-gh-pages/web` folders from extracted package to `pdfjs` folder.
d. The web/ directory contains a 1 MB PDF file called "compressed.tracemonkey-pldi-09.pdf". This file is a sample and can safely be removed.
ps: More info can be found here: https://github.com/mozilla/pdf.js/wiki/setup-pdf.js-in-a-website
⋅⋅*OR
*OR
B. Using modified version of viewerJs (Recommended approach)
⋅⋅⋅a. Download/copy the folder pdfjs from https://github.com/intbot/ng2-pdfjs-viewer/tree/master/pdfjs and put it under your angular2+ application's `assets` folder.
⋅⋅⋅b. Now you can use additional settings such as
[pdfJsFolder]: To set the folder path under `web` and `build` resides.
[externalWindow]: To decide pdf should be inline or in a new tab
[openFile]: Show/hide open file icon
[viewBookmark]: Show/hide bookmark icon
[download]: Show/hide download icon
[showSpinner]: Show a simple css based spinner/progress before the pdf loads
###B. Using modified version of viewerJs (Recommended approach)
a. Download/copy the folder pdfjs from https://github.com/intbot/ng2-pdfjs-viewer/tree/master/pdfjs and put it under your angular2+ application's `assets` folder.
b. Now you can use additional settings such as
`[pdfJsFolder]`: To set the folder path under `web` and `build` resides.
`[externalWindow]`: To decide pdf should be inline or in a new tab
`[openFile]`: Show/hide open file icon
`[viewBookmark]`: Show/hide bookmark icon
`[download]`: Show/hide download icon
`[showSpinner]`: Show a simple css based spinner/progress before the pdf loads

@@ -27,0 +27,0 @@ ## Step 2: Install this library, run:

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc