Comments (5)
Hi there!
Yes, the development should carry on and yes there are 2 components: one to render a given PDF and one to control it (toolbar).
You can have a quick look at how to do the basics in the dummy app (here).
In most cases, you will want to extend the toolbar component to have you own layout / html / css ...
I should put an example of that in the README soon.
In the meantime I can explain you how to deal with it if you need it right now :)
from ember-pdf-js.
Thank you @leojpod :) I'm trying it now....will ask question if get stuck if you don't mind :)
from ember-pdf-js.
from ember-pdf-js.
Hi,
I was just wondering can I pass in a binary value from a model in order to view the pdf? pdf.js does allow this but I was wondering if your addon allows this?
There also appears to be an issue as it installs via npm but the source then looks for pdfjs-dist in the bower_components directory which it does not as it's in node_modules.
I performed a bower install and managed to get the view to display albeit without a pdf loaded.
Also, when in development which directory should the actual pdf document be in so that it loads if given a file name.
from ember-pdf-js.
@collegeimprovements I've added some explanation in the readme.
@DarrenDrumm sorry for the time it took to answer but you should be able to put your pdf file in the public folder of your ember app. Regarding the binary value, I haven't tried it. Do you know which param is used by pdf.js to do that?
Right now, the addon use pdfjs.getDocument(uri)
where uri
is the value passed to pdf
to the viewer component.
I think some of my college dealt with the bower_components issue, can you still reproduce it?
from ember-pdf-js.
Related Issues (12)
- bind the current page number
- keep track of the search results and the current match
- `broccoli-merge-trees` should be a dependency, not devDependency HOT 1
- get some context out of the search results
- pdf.js match count and totals should reset when the research is cancelled
- Cannot read property 'workerSrc' of undefined HOT 4
- How to disable DEFAULT_SCALE value ?
- 0.1.13 has not been published in npm HOT 1
- Upgrade PDFJS Dist HOT 1
- JPEG error: unexpected marker ffd9 HOT 6
- Any plans to upgrade this addon to ember@4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-pdf-js.