Edit online

Adding a Watermark in DITA Map to XHTML Output

To add a watermark to the XHTML output of a DITA map transformation, follow these steps:

  1. Create a custom CSS stylesheet that includes the watermark image, as in the following example:
    body {
     background-image: url(MyWatermarkImage.png);
    }
  2. Edit a DITA Map XHTML transformation scenario and in the Parameters tab set the value of the args.css parameter as the path to your watermark image.
  3. Set the value of the args.copycss parameter to yes.
  4. Apply the transformation scenario.
  5. Copy the watermark image in the output directory of the transformation scenario, next to the CSS file created in step 1.