Here is what I have in my mind:
First, I will view the document in an embed tag.
Second, Users can print the pdf, but these are confidential files so they need to coordinate to the document controller to have their own copy.
Third, When they will print the PDF, there is some action that will put a watermark in the pdf . I researched and here's what I found out:
http://techienextdoor.blogspot.com/2012/10/pdfwatermarker-apply-image-watermark-to.html
I want to integrate this in my implementation because it is easy. But I don't know where to start.
My mind is puzzling how to intercept the action (so that I could put the watermark) before printing the PDF in PHP?