Dynamic content modification on download (for example dynamic watermarking)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 12:24 PM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2014 02:01 AM
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.
Just a thought.
