cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic content modification on download (for example dynamic watermarking)

tomasp
Champ in-the-making
Champ in-the-making
Hi,
I need to develop dynamic modification of downloading document. It is similar to watermarking pdf document with downloader's user name.

This feature has to be "system-wide", for all types of downloading (http downloading, cmis, samba, printing, …).

I tried to bind behaviour to OnContentReadPolicy, but no success. Behaviour read content stream, made changes and wrote modified content back to content. But download running in read-only transaction, so the write failed. Also, this is not optimal method, because it changes original content stored on repository.

So how I can implement this feature?

Thanks,

Tom
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Alfresco has one servlet which manages download probably you can replace that servlet with your own servlet so that whenever download request comes it will go through your servlet rather then out of box servlet and then you can do whatever you want.
Just a thought.