Configuring File Viewer to support watermarks

Starting with release 2.0 CR2 iFix003, configure the Viewer server so that users can add watermarks to documents and spreadsheets.

Procedure

  1. Download and install HCL Connections Docs 2.0 CR2 iFix003 from IBM Fix Central.
  2. Stop the Viewer cluster.
  3. From the Deployment Manager web console, go to Servers > Clusters > WebSphere application server clusters, select IBMViewerCluster, and click Stop.
  4. Modify the viewer-config.json file as follows:
    1. 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.
    2. 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.
    3. 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.

  5. From the Deployment Manager web console, complete the following steps:
    1. Go to System administration > Nodes > Select all the Viewer nodes > Full Resynchronize to synchronize the change to all nodes.
    2. Go to Servers > Clusters > WebSphere application server clusters, select IBMViewerCluster, click Stop and then click Start to restart the Viewer cluster.