You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 ?
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.
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
The text was updated successfully, but these errors were encountered: