We have an AngularJS web app that loads PDF documents from the server and displays them within the page like this:
<object id="preview" type="application/pdf" data="blob:{fileUrl}">
We have a new requirement to audit whenever a user performs certain actions:
- views a document (done)
- prints a document
- downloads a document
The PDF download and print controls are within the browser PDF viewer. We only have to support latest Google Chrome (Chrome 68 as of July 2018).
Is it possible to detect when the file is downloaded or printed from the PDF viewer? I'm not seeing any beforeprint/afterprint events, I assume because it's cross-origin. We don't need to control the handlers, just detect the events somehow.
from Can you detect when a PDF is printed or downloaded from the browser PDF viewer?
No comments:
Post a Comment