ng2-pdfjs-viewer
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20175