Implementation of PDF viewer web component using PDF.JS from Mozila.
Maintained by Rahmathullah.
-
Import Web Components.js:
<script src="/webcomponents.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/pdf-viewer.html">
-
Start using it!
<pdf-viewer id="my_pdf_viewer" path="path/to/your/pdf/here.pdf"></pdf-viewer>
Attribute | Options | Description |
---|---|---|
path |
string | Path to the pdf to be rendered |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D