├── .gitignore ├── LICENSE ├── README.md ├── bower.json ├── demo ├── index.html └── pdf-sample.pdf ├── index.html ├── pdf-browser-viewer.html └── test └── pdf-browser-viewer_test.html /.gitignore: -------------------------------------------------------------------------------- 1 | **.DS_Store 2 | *.iml 3 | 4 | .git/ 5 | .idea/ 6 | bower_components/ 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Ingresso Rápido Web Components 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![bower version](https://img.shields.io/bower/v/pdf-browser-viewer.svg)](https://libraries.io/bower/pdf-browser-viewer) 2 | [![open issues](https://img.shields.io/github/issues/IngressoRapidoWebComponents%2Fpdf-browser-viewer.svg)](https://github.com/IngressoRapidoWebComponents/pdf-browser-viewer/issues) 3 | [![license](https://img.shields.io/github/license/IngressoRapidoWebComponents%2Fpdf-browser-viewer.svg)](https://github.com/IngressoRapidoWebComponents/pdf-browser-viewer/blob/master/LICENSE) 4 | 5 | 6 | # \ 7 | 8 | PDF viewer using native browser object as application/pdf 9 | 10 | _[Demo and API docs](https://ingressorapidowebcomponents.github.io/components/pdf-browser-viewer/)_ 11 | 12 | Example: 13 | ```html 14 | 15 | ``` 16 | 17 | Data Bind with Blob example: 18 | ```js 19 | this.pdfUrl = URL.createObjectURL(blob); 20 | ``` 21 | 22 | Clear PDF container example: 23 | ```js 24 | this.$.pdfViewer.clear(); 25 | ``` 26 | 27 | Message example: 28 | ```html 29 | 33 | 34 | ``` 35 | 36 | Card example: 37 | ```html 38 | 42 | 43 | ``` -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pdf-browser-viewer", 3 | "description": "PDF viewer using native browser object as application/pdf", 4 | "version": "1.0.6", 5 | "homepage": "https://ingressorapidowebcomponents.github.io/components/pdf-browser-viewer", 6 | "authors": [ 7 | "Andrew Willard (https://github.com/andrew-silva-movile)" 8 | ], 9 | "keywords": [ 10 | "web-components", 11 | "web-component", 12 | "polymer", 13 | "pdf", 14 | "pdf-viewer", 15 | "pdf-object", 16 | "pdf-render" 17 | ], 18 | "main": "pdf-browser-viewer.html", 19 | "dependencies": { 20 | "polymer": "Polymer/polymer#^1.4.0", 21 | "paper-card": "PolymerElements/paper-card#^1.1.1", 22 | "paper-button": "PolymerElements/paper-button#^1.0.12" 23 | }, 24 | "devDependencies": { 25 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", 26 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", 27 | "web-component-tester": "^4.0.0", 28 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | pdf-browser-viewer demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 |
20 |

Basic pdf-browser-viewer Demo

21 | 22 | 28 | 29 |
30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /demo/pdf-sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IngressoRapidoWebComponents/pdf-browser-viewer/a2988fb2944f60054a3e7b3279099e90622fcb3f/demo/pdf-sample.pdf -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | pdf-browser-viewer 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /pdf-browser-viewer.html: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 54 | 55 | 56 | 91 | 92 | 186 | -------------------------------------------------------------------------------- /test/pdf-browser-viewer_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | pdf-browser-viewer test 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 31 | 32 | 33 | --------------------------------------------------------------------------------