The draftwatermark package
Prints a text watermark such as "DRAFT" behind the content of every page; text, size, angle and colour are set with \DraftwatermarkOptions.
Loading the package
\usepackage{draftwatermark}Loading the package without options is enough for the common case: the word DRAFT in light grey, rotated by 45 degrees, across the centre of every page.
The settings are key=value pairs, given as package options or later in \DraftwatermarkOptions{...}. The older commands \SetWatermarkText, \SetWatermarkScale and \SetWatermarkColor still work and set the same keys.
Main commands
text=CONFIDENTIAL | The watermark text. |
fontsize=3cm | Font size of the text; the default is a quarter of the paper width. |
angle=45 | Rotation in degrees; 0 sets the text horizontally. |
color=red!30 | Colour of the text. A mix such as red!30 needs xcolor. |
firstpageonly | Option: watermark on the first page only. |
stamp=false | Switches the watermark off without removing the package; the option final does the same. |
\DraftwatermarkOptions{text=COPY, angle=0} | Changes settings in the preamble or between two pages. |
Complete example
\documentclass{article}
\usepackage{lmodern}
\usepackage{xcolor}
\usepackage{draftwatermark}
\DraftwatermarkOptions{text=DRAFT, fontsize=4cm, angle=45, color=red!25}
\begin{document}
\section{Report}
The word DRAFT is printed in light red behind this text.
\newpage
The watermark appears on the second page as well.
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
Pitfalls
- With the default Computer Modern fonts, the large font size is replaced by 24.88pt and the watermark comes out much smaller than set; the log shows a font size substitution warning. Load a freely scalable font such as
lmodern. - The watermark lies behind the page content. A figure or a coloured box that fills its area covers it.
- For an image as watermark, see Add a watermark in LaTeX.
Related pages
- How-to Add a watermark in LaTeX
- Package
lmodern - Package
xcolor