This is a DITA-OT Plug-in to add a watermark to generated HTML. The plugin extends the DITA Bootstrap HTML.
Table of Contents
The DITA Bootstrap Watermark plug-in has been tested against DITA-OT 3.x. It is recommended that you upgrade to the latest version.
The DITA Bootstrap Watermark plug-in is a plug-in for the DITA Open Toolkit.
-
Full installation instructions for downloading DITA-OT can be found here.
- Download the
dita-ot-4.1.zippackage from the project website at dita-ot.org/download - Extract the contents of the package to the directory where you want to install DITA-OT.
- Optional: Add the absolute path for the
bindirectory to the PATH system variable.
This defines the necessary environment variable to run the
ditacommand from the command line. - Download the
curl -LO https://github.com/dita-ot/dita-ot/releases/download/4.1/dita-ot-4.1.zip
unzip -q dita-ot-4.1.zip
rm dita-ot-4.1.zip- Run the plug-in installation commands:
dita install fox.jason.extend.css
dita install org.dita-bootstrap.html
dita install org.dita-bootstrap.watermarkThe dita command line tool requires no additional configuration.
The plugin extends Bootstrap HTML processing:
PATH_TO_DITA_OT/bin/dita -f html5-bootstrap \
-i document.ditamap \
--bootstrap.watermark=draft|review|final|noneBy default the output HTML will be watermarked as a DRAFT
bootstrap.watermark- Decides which watermark to use:draft- Adds a watermark stating DRAFT DOCUMENTreview- Adds a watermark stating Copy for review onlyfinal- Adds a sidebar footer onlynone- Does not add any watermarks
Apache 2.0 © 2023-2026 Jason Fox