Watermark from second page

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?

• possible duplicate of Watermark on selected pages
– Null
Mar 4 '15 at 21:41
• @Null, superb, but how do I set watermark from 2nd page to LAST page, i.e., how do I get number of pages inside latex doc? Mar 4 '15 at 21:43
• Are you using the xwatermark package or would you be willing to use another one? Mar 4 '15 at 21:45
• @Null Unless the OP confirms that he is using xwatermark this could be not a duplicate of the linked question. Mar 4 '15 at 21:46
• Closing voters: this is not a duplicate of the linked question; there the problem is specific to xwatermark which is not used by the OP here. Mar 4 '15 at 22:00

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}

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

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.