Git Product home page Git Product logo

Comments (6)

jasny avatar jasny commented on August 17, 2024

@omatase Take a look at legalthings/pdf.js-viewer. It's a fork of a Mozilla demo project, therefor it doesn't lent itself that easily for use in an angular application.

Check which methods are exposed. You might need to add some customizations.

from angular-pdfjs-viewer.

omatase avatar omatase commented on August 17, 2024

Thanks for responding @jasny. I just need a bit of clarification. Are you suggesting I not use the angular version of the pdfjs viewer or are you suggesting I look at the non-angular version for insight as to how to go about injecting a custom look and feel for the angular version?

from angular-pdfjs-viewer.

jasny avatar jasny commented on August 17, 2024

@omatase The second: I am suggesting that you look at the non-angular version for insight as to how to go about injecting a custom look and feel for the angular version.

from angular-pdfjs-viewer.

omatase avatar omatase commented on August 17, 2024

Thanks @jasny, where do I go to find that? The link you gave goes to a 404. Is it this one? https://github.com/legalthings/pdf.js-viewer

from angular-pdfjs-viewer.

jasny avatar jasny commented on August 17, 2024

@omatase Yes

from angular-pdfjs-viewer.

omatase avatar omatase commented on August 17, 2024

@jasny Thanks for your help. I didn't realize this before but after looking into it, you can do what I want to do by overriding the directive in a decorator. Pretty much exactly what I needed.

.config(function ($provide) {
    $provide.decorator('pdfjsViewerDirective', function ($delegate) {

        if ($delegate && $delegate.length > 0) {
            $delegate[0].templateUrl = '/Scripts/app/document-viewer/templates/pdf.js-viewer.html';
            $delegate[0].template = null;
        }

        return $delegate;
    });
});

Personally, with this as an option I don't see a reason for any specific feature to address customization.

from angular-pdfjs-viewer.

Related Issues (20)

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.