GithubHelp home page GithubHelp logo

How to disabled Ctrl+P and Ctrl+S?. Right now anyone can print or download using keys. Please help me on this. about ng2-pdfjs-viewer HOT 7 CLOSED

intbot avatar intbot commented on August 23, 2024
How to disabled Ctrl+P and Ctrl+S?. Right now anyone can print or download using keys. Please help me on this.

from ng2-pdfjs-viewer.

Comments (7)

codehippie1 avatar codehippie1 commented on August 23, 2024

@KanhaKanha123 This is an underlying feature getting activated in Mozilla's PDFJS viewer. Since this component wraps the underlying PDFJS viewer, we may be able to achieve this by modifying underlying component.

Since this is the first request of this kind and is a feature request, Please look into viewer.js file and modify directly, as it might take me a while to get to this.

from ng2-pdfjs-viewer.

KanhaKanha123 avatar KanhaKanha123 commented on August 23, 2024

Dear team i modified the viewer.js file but how to get those change in production build?. I can not commit node_modules folder on SVN, We are using Jenkins to buils our angular app. I could not find the way for this. Please help me on this thanks.

from ng2-pdfjs-viewer.

KanhaKanha123 avatar KanhaKanha123 commented on August 23, 2024

Please help me in this issue. If possible please update the library with these two flags as a properties so developers can use them as per their requirement. if you have alternate solution for this please suggest me that as well.

from ng2-pdfjs-viewer.

KanhaKanha123 avatar KanhaKanha123 commented on August 23, 2024

Any solution for this guys?. Please help me on this.

from ng2-pdfjs-viewer.

codehippie1 avatar codehippie1 commented on August 23, 2024

Hi. The viewer.js should be copied under assets as per instructions on setup(Refer to instructions). You may modify directly there. There are other ways to keep viewer.js under another folder and modify as well. Instructions are provided in readme. Please check installation instructions.

from ng2-pdfjs-viewer.

KanhaKanha123 avatar KanhaKanha123 commented on August 23, 2024

Thank you so much for the suggestion it worked for me.

from ng2-pdfjs-viewer.

codehippie1 avatar codehippie1 commented on August 23, 2024

Duplicate

from ng2-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.