angularjs-pdf-viewer
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "angularjs-pdf-viewer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Eray KIZILTAS", | ||
@@ -5,0 +5,0 @@ "description": "An AngularJS directive to display PDFs", |
@@ -13,3 +13,4 @@ ## Angular PDF Viewer | ||
1. `bower install angular-pdf-viewer` | ||
1. `npm install angularjs-pdf-viewer` | ||
`yarn add angularjs-pdf-viewer` | ||
@@ -19,5 +20,5 @@ 2. Include the path to the lib, AngularJS and PDFJS: | ||
``` | ||
<script src="bower_components/pdfjs-dist/build/pdf.js"></script> | ||
<script src="bower_components/angular/angular.js"></script> | ||
<script src="bower_components/angular-pdf-viewer/dist/angular-pdf-viewer.min.js"></script> | ||
<script src="node_modules/pdfjs-dist/build/pdf.js"></script> | ||
<script src="node_modules/angular/angular.js"></script> | ||
<script src="node_modules/angularjs-pdf-viewer/dist/angular-pdf-viewer.min.js"></script> | ||
``` | ||
@@ -82,3 +83,3 @@ | ||
Run `npm install && bower install` to install all dependencies. And then `gulp dev` to start a local server. The example will now be available at [localhost:3000/src](http://localhost:3000/src) | ||
Run `npm install && yarn add` to install all dependencies. And then `gulp dev` to start a local server. The example will now be available at [localhost:3000/src](http://localhost:3000/src) | ||
@@ -88,12 +89,1 @@ | ||
The default toolbar can be shown or hidden using the `show-toolbar` attribute. Since the PDF can be easily controlled using the delegate service it's quite trivial to build a custom toolbar. Or place the toolbar on a separate scope. | ||
## Similar projects | ||
1. [angularjs-pdf](https://github.com/sayanee/angularjs-pdf) | ||
2. [ng-pdfviewer](https://github.com/akrennmair/ng-pdfviewer) | ||
## Credit | ||
PDF examples used are [Relativity: The Special and General Theory by Albert Einstein](http://www.gutenberg.org/ebooks/30155) as kindly organized and made available free by [Project Gutenberg](http://www.gutenberg.org/wiki/Main_Page). And the [This is Material Design](http://static.googleusercontent.com/media/www.google.com/en//design/material-design.pdf) by Google. |
8347446
86