Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to prevent download and printing function #10

Open
shinrichs opened this issue Jun 14, 2017 · 2 comments
Open

Option to prevent download and printing function #10

shinrichs opened this issue Jun 14, 2017 · 2 comments

Comments

@shinrichs
Copy link

Suggestion for new feature:

Is it possible to add properties to PDFViewer Component to prevent the download and printing function or add a function to intercept the clientside events?

Thanks, Stefan

@seanthomasdevlin
Copy link
Member

It is possible. However we use completely the default viewer that ships with PDF JS library.
Once we open up that viewer we really fork from the library.
But maybe it's possible to expose some API to modify it at runtime.

Can you explain a bit more about your use case?
Do you want this for security reason ?

@shinrichs
Copy link
Author

It's not for security reason only. For example we need setting a flag if the user prints or download a PDF document, so that the next user knows the document was printed already.

Now we show a own print button and intercept the button event if we have documents for printing. It would be enough if we can get the "printing" and "download" event from the webcomponent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants