Custom watermark in letter PDF preview custom-watermark-in-letter-pdf-preview

AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

Overview overview

In the Create Correspondence UI, agent users preview the correspondence in final shape in which it is sent to post processing, such as for e-mailing or printing.

To prevent unauthorized use of this data, organizations can impose a watermark on the preview PDF. The default watermark is “PREVIEW”, which appears across the PDF.

To enable the watermark in preview PDF, select the Apply Watermark During Preview option in Correspondence Management Configurations at https://[server]:[port]/system/console/configMgr.


You can use the following steps to customize the text and appearance of the watermark:

Customize the watermark in PDF preview in Create Correspondence UI customizewatermark-

  1. Go to https://[server]:[port]/[ContextPath]/crx/de and login as Administrator.

  2. In the apps folder, create a folder named previewwatermark with path/structure similar to the previewwatermark folder in the libs folder:

    1. Right-click the **previewwatermark **folder at the following path and select Overlay Node:


    2. Ensure that the Overlay Node dialog has the following values:

      Path: /libs/fd/cm/configFiles/previewwatermark

      Overlay Location: /apps/

      Match Node Types: Checked

      note note
      Do not make changes in the /libs branch. Any changes you do make may be lost, because this branch is liable to changes whenever you:
      • Upgrade on your instance
      • Apply a hot fix
      • Install a feature pack
    3. Click OK and then click Save All. The previewwatermark folder is created in the specified path.

  3. Copy and paste the ddx file from “/libs/fd/cm/configFiles/previewwatermark” folder to “/apps/fd/cm/configFiles/previewwatermark” folder and click Save All.

  4. Make the desired changes in the ddx file under /apps/fd/cm/configFiles/previewwatermark/.

    code language-none
    <DDX xmlns="">
     <PDF result="output.pdf">
      <PDF source="input.pdf"/>
            <Watermark opacity="15%" rotation="45">
                      <p font-family="Georgia" font-size="70pt" color="black" font-weight="bold">

    For information on customizing the watermark appearance, text, and alignment, see Adding and removing watermarks and backgrounds in the Assembler Service and DDX Reference document.

    note note
    In the ddx file, the references to result and source should remain unchaged to output.pdf and input.pdf. Name of the file ddx should also not be changed.
  5. Click Save All.