[Tex/LaTex] Watermark on the first page only

watermark

I'm modified the following code from this post to add a couple of vertical watermarks on a page. However, the code places these watermarks on every page.

Is there a way to restrict watermarking to the first page or certain pages of my amsbook?

\documentclass{amsbook}
\usepackage{graphicx}
\usepackage{eso-pic}

\makeatletter
\AddToShipoutPicture{%
\setlength{\@tempdimb}{.5\paperwidth}%
\setlength{\@tempdimc}{.5\paperheight}%
\setlength{\unitlength}{1pt}%
\protect{\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
\makebox(-515,0){\rotatebox{90}{\textcolor[gray]{0.90}%
   {\Huge Draft:  \today}}}
\makebox(515,0){\rotatebox{270}{\textcolor[gray]{0.90}%
   {\Huge  Draft:  \today}}}}}}
\makeatother

\begin{document}

Hi
\newpage
Hi, again.

\end{document}

Best Answer

The background package allows you to do this easily; simply use the some package option together with the \BgThispage command for those pages which should exhibit the watermark; the package also allows you to control all the aspects of the watermark (opacity, color, scale, placement, etc.). A little example:

\documentclass{amsbook}
\usepackage{graphicx}
\usepackage[some]{background}

\SetBgScale{1}
\SetBgContents{\parbox{10cm}{%
  \Huge Draft:  \today\\[14cm]\rotatebox{180}{\Huge Draft:  \today}}}
\SetBgColor{gray}
\SetBgAngle{270}
\SetBgOpacity{0.2}

\begin{document}

Hi\BgThispage
\newpage
Hi, again.

\end{document}