[Tex/LaTex] latex : Exclude draftwatermark from specific pages

draftwatermarkwatermark

I am using draftwatermark package. Is there any option to exclude watermark from some specific pages? Say no watermark from pg 3-4. I can not use xwatermark package. It conflicts with the geometry package of my document.
MWE:

\documentclass[12pt,a4paper]{exam}
\usepackage{draftwatermark} 
\usepackage{lipsum}  
\SetWatermarkAngle{45} 
\SetWatermarkLightness{.8} 
\SetWatermarkFontSize{10cm} 
\SetWatermarkScale{5} 
\SetWatermarkText{\tt{12345}}

\begin{document} 
\lipsum[1-20] 
\end{document}

Best Answer

You can define a command \watermarkoff that works like the one for the background package, and place it in the page you want to turn off.

Output

enter image description here

Code

\documentclass[12pt,a4paper]{exam}
\usepackage{draftwatermark}
\usepackage{etoolbox} 
\usepackage{lipsum}  
\SetWatermarkAngle{45} 
\SetWatermarkLightness{.8} 
\SetWatermarkFontSize{10cm} 
\SetWatermarkScale{5} 
\SetWatermarkText{\tt{12345}}

\makeatletter
\def\watermarkoff{%
        \@sc@wm@stampfalse
}
\makeatother


\begin{document} 
\lipsum[1-8]
\watermarkoff
\lipsum[9-12] 
\end{document}
Related Question