title: How do I document that a PDF file on my webpage is opened by a customer?
body: <p>I have a secure website where customers logs in to view documents that they need. These documents are mostly PDF files in a bunch of different directories (i.e. Documents/2013 for all the 2013 versions of the files). In my current application, after the customer logs in, they click on the document they want to see and it opens in a different browser page. They can then save or print it as they wish. </p>
  
  <p>I would like to be able to log the fact that the customer has opened a file.</p>
  
  <p>My current application merely shows the hyperlink of the PDF document which the customer can click. I am running Apache/Tomcat and java servlets.</p>
  
  <p>On my session parameters, I have saved the customer id and I also have a logger servlet which I use to document that the customer has logged on and what different web pages they go to.</p>
  
  <p>Any help will be appreciated. Thank you in advance.</p>