Giter Club home page Giter Club logo

Comments (5)

leojpod avatar leojpod commented on August 12, 2024

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.

collegeimprovements avatar collegeimprovements commented on August 12, 2024

Thank you @leojpod :) I'm trying it now....will ask question if get stuck if you don't mind :)

from ember-pdf-js.

leojpod avatar leojpod commented on August 12, 2024

from ember-pdf-js.

DarrenDrumm avatar DarrenDrumm commented on August 12, 2024

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.

leojpod avatar leojpod commented on August 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.