Skip to content

andrewillard/pdf-object

 
 

Repository files navigation

<pdf-object>

An embeddable PDF viewer for Polymer

View a live Demo.

Install

Install the component using Bower:

$ bower install --save pdf-object

Or download as ZIP.

Usage

Requires Polymer 1.0

Read the Docs

Example:

<pdf-object file="http://www.polyu.edu.hk/iaee/files/pdf-sample.pdf"></pdf-object>

Example - with card enabled and elevation set to 5:

<pdf-object file="[[pdfUrl]]" elevation="5" card></pdf-object>

Example - with data binding and custom height:

<pdf-object file="[[pdfUrl]]" height="800px"></pdf-object>

A ridiculous amount of coffee was consumed in the process of building this project. Add some fuel if you'd like to keep me going!

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

Changelog

Take a peek at the changelog.

License

GNU Public License v3

About

An embeddable PDF viewer for Polymer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%