Jump to content
We've recently updated our Privacy Statement, available here ×

How to notify when PDF generated was opened / Como notificar quando o PDF gerado foi aberto


tujoia

Recommended Posts

In English:
I need to implement something that I don't know if JasperReports allows.
I need to know when the customer opened the PDF file.
The idea would be that when the file is opened, a URL is triggered in the background without user intervention.
If this is possible, could someone help me by letting me know how?

 

Em portugues:

Preciso implementar coisa que não sei se o JasperReports permite.
Preciso saber quando o cliente abriu o arquivo PDF.
A idéia seria que quando o arquivo for aberto, uma URL seja acionada em segundo plano, sem a intervenção do usuário.
Se isto é possível,  alguém poderia me ajudar informando como?

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This is a tough one. We do have audit capabilities which you possibly could utilize. If you enable auditing (be careful not to enable everything - be selective) for accessing a resource, this will write to audit tables. You could, in theory, write a trigger on the Jasper Database to check for entries on the audit tables that match your resource type (PDF) and the DB trigger could possibly perform the action you require. It's not straightforward, and you'll have to test for performance issues as the audit tables share the same DB as the rest of the Jasper Repo (until 8.x when we split the audit tables to their own DB). Good luck.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...