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

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.

default-watermark

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:

      /libs/fd/cm/configFiles/previewwatermark

    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
      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:
      code language-none
      * 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-xml
    <DDX xmlns="https://ns.adobe.com/DDX/1.0/">
     <PDF result="output.pdf">
      <PDF source="input.pdf"/>
            <Watermark opacity="15%" rotation="45">
             <StyledText>
                      <p font-family="Georgia" font-size="70pt" color="black" font-weight="bold">
                          PREVIEW
                     </p>
             </StyledText>
            </Watermark>
     </PDF>
    </DDX>
    

    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
    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.

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2