Starting with release 2.0 CR2 iFix003, configure the Viewer server so that users can add
watermarks to documents and spreadsheets.
Procedure
-
Download and install HCL Connections™
Docs 2.0 CR2 iFix003
from IBM Fix
Central.
-
Stop the Viewer cluster.
-
From the Deployment Manager web console, go to , select IBMViewerCluster, and click
Stop.
-
Modify the viewer-config.json file as follows:
-
Log in to the server where the Deployment Manager is installed. Change the directory to
<dmgr_install_root>/config/cells/<cell_name>/
IBMDocs-config, for example,
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/docsCell01/IBMDocs-config.
-
In the viewer-config.json file, search for “HtmlViewerConfig" and add the
following lines inside the configuration of HtmlViewerConfig:
"Watermark":
{
"enabled": "true",
"text_watermark":
{
"text":"CONFIDENTIAL CompanyName",
"font":"Arial",
"size":"72",
"color":"#D2D2D2",
"diagonal": "true"
}
}
where
- "text " is the string that you want to display as the watermark
- "font" is the font of the watermark
- "size" is the size of the watermark
- "color" is the color of the watermark, using a hexadecimal value in the form #RRGGBB
- "diagonal" is "true" for diagonal and "false" for horizontal
Note: You might need to insert commas before and after the following lines to ensure that the
configuration is in the correct JSON format. When modifying viewer-config.json,
encode the file in UTF-8 format.
-
If you want the watermarks to show information about the user, modify the code as
follows:
"Watermark":
{
"enabled": "true",
"text_watermark":
{
"text":"CONFIDENTIAL CompanyName ${user} ${time}",
"font":"Arial",
"size":"72",
"color":"#D2D2D2",
"diagonal": "true"
}
}
4. Restart the Viewer cluster.
-
From the Deployment Manager web console, complete the following steps:
-
Go to to synchronize the change to all nodes.
-
Go to , select , click Stop and then click Start to
restart the Viewer cluster.