How do I add watermark into document, but from second page. Or better, from, instance, from second page and to, for instance, 10th page of document?
Asked
Active
Viewed 811 times
3
2 Answers
7
Here's one option using the background package; read the package documentation to see all the customization possibilities it offers:
\documentclass{article}
\usepackage[contents={}]{background}
\usepackage{lipsum}
\AddEverypageHook{
\ifnum\value{page}=1\relax
\else
\backgroundsetup{contents={my text}}
\fi
\BgMaterial
}
\begin{document}
\lipsum[1-30]
\end{document}
Use the
\backgroundsetup{}
command in the \else branch to place the desired material, at the desired location, with the specified attributes.
Gonzalo Medina
- 505,128
3
Similar to Gonzalo's answer, just using draftwatermark:

\documentclass{article}
\usepackage{draftwatermark,xcolor}
\usepackage{lipsum}
\SetWatermarkAngle{45}
\SetWatermarkColor{red!30}
\SetWatermarkScale{5}
\SetWatermarkText{%
\ifnum\value{page}=1\relax% Nothing on page 1;
\else DRAFT \fi}
\begin{document}
\lipsum[1-30]
\end{document}
For conditional printing of content, make sure you specify this condition as part of \SetWatermarkText.
Werner
- 603,163
xwatermarkthis could be not a duplicate of the linked question. – Gonzalo Medina Mar 04 '15 at 21:46xwatermark, but\usepackage{draftwatermark}, so I usedraftwatermark. – KernelPanic Mar 04 '15 at 21:47xwatermarkwhich is not used by the OP here. – Gonzalo Medina Mar 04 '15 at 22:00