You are here:
Add a Text Watermark to a Document Template
Enhance document security and status visibility by adding a custom watermark to a Microsoft Word template. By using a token inside a text box, you can dynamically display the appropriate label in the generated document. Standard Microsoft Word watermarks found under the Design tab are not supported.
| REQUIRED EDITIONS |
|---|
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, Professional, and Developer Editions |
| USER PERMISSIONS NEEDED | |
|---|---|
| To create a template: | DocGen Designer permission set AND Microsoft 365 Word user permission set OR Microsoft 365 Word Designer permission set |
You can only use a template created in Microsoft Word. See Create Templates in Design Document Template With Microsoft Word.
- In your Microsoft Word document template, go to the Header & Footer tab.
-
Insert a token.
Use a token to dynamically control the watermark text without modifying the Word template. For example, you can update the data mapper to switch between DRAFT and FINAL.
- On the Insert tab, select the Text Box.
- Inside the text box, enter {{watermark_text}}.
- Right-click the text box, and select Format Shape.
- For Shape Fill, select No Fill, and for Set Shape Outline, select No Outline.
-
Configure the font.
The generated PDF preserves the font style, size, and opacity configured in the DOCX document.
- Set the font size to a large value, such as 80 points (pt).
- Set the font color to light gray to ensure readability of the foreground text.
- Use the rotation handle to turn the text box diagonally.
-
Position the text box.
- Select the text box, and go to Wrap Text.
- Select Behind Text.
- Drag the text box to the center of the page.
- Close the header and save your file.
-
Map the token to a value in Salesforce.
- From the App Launcher, search for and select Document Generation Process.
- elect the process record associated with the template. Using the Context Service token-mapping method, locate the Token Data field. Enter the value that you want to appear in place of the token. For example, token data: {"watermark_text": "CONFIDENTIAL"}.

