This is a simple addon to wrap PDF.js in ember.
To use it in a really simple way just use the pdf-js
component:
In most cases, you will want to "extend" the toolbar component, you can develop your own component and make ember-pdf-js
use it:
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
})
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