Skip to content

lifuzu/pdf-reader-web-component

Repository files navigation

PDF Reader Web Component

PDF Reader Web Component is a custom element built with Polymer and PDF.js.

Component can be used as a widget on the web page to display attached PDF docs.

DEMO

##Usage

Install deps and build component:

npm install && bower install && grunt

Include Polymer script in your HTML:

<script src="polymer.min.js"></script>

HTML import in head:

<link rel="import" href="elements/pdf-reader/pdf-reader.html">

And the element itself:

<pdf-reader width="720" height="480" data-url="path_to_pdf"></pdf-reader>

Where path_to_pdf is the url to PDF file.

About

PDF Reader as Web Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors