Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-pdf-js

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-pdf-js

A simple addon to wrap PDF.js in ember.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
decreased by-20%
Maintainers
4
Weekly downloads
 
Created
Source

Ember-pdf-js

Standard - JavaScript Style Guide Latest NPM release Ember Observer Score License Dependencies Dev Dependencies Build Status

This is a simple addon to wrap PDF.js in ember.

Addon's "API"

To use it in a really simple way just use the pdf-js component:

{{pdf-js pdf=urlOfYourPdf}}

In most cases, you will want to "extend" the toolbar component, you can develop your own component and make ember-pdf-js use it:

{{pdf-js pdf=urlOfYourPdf toolbarComponent="your-component-here"}}

Your toolbar component should extends the original component:

import PdfJsToolbar from 'ember-pdf-js/components/pdf-js-toolbar';
import layout from '../../templates/components/pdf-js/toolbar';

export default PdfJsToolbar.extend({
  layout
  })

A word about the current page update

There are some limitation ATM on how the current page is updated. The "scroll" need to be placed on the .pdfViewerContainer. For an example on how to do it, check the dummy app's style sheet

Keywords

FAQs

Package last updated on 06 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc