rahmathm1 / pdf-viewer

Implementation of PDF viewer web component using PDF.JS from Mozila.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<pdf-viewer>

Implementation of PDF viewer web component using PDF.JS from Mozila.

Maintained by Rahmathullah.

Demo

Check it live.

Usage

  1. Import Web Components.js:

    <script src="/webcomponents.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/pdf-viewer.html">
  3. Start using it!

    <pdf-viewer id="my_pdf_viewer" path="path/to/your/pdf/here.pdf"></pdf-viewer>

Options

Attribute Options Description
path string Path to the pdf to be rendered

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

About

Implementation of PDF viewer web component using PDF.JS from Mozila.

License:MIT License


Languages

Language:Java 99.4%Language:HTML 0.5%Language:JavaScript 0.0%