Follow-up question to Hiding watermark for first page?.
I have recently learned about \lastdocpage (from the previous question), but is there a way to refer to two pages prior to \lastdocpage? To understand the context, the watermark from the previous question should last from pages 2 to two pages prior to the end of the document.
MWE:
\documentclass[12pt]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{tikz}
\usepackage[version=3]{mhchem}
\usepackage [english]{babel}
\usepackage[printwatermark]{xwatermark}
\newwatermark*[pages=2-\lastdocpage,color=gray,angle=0,scale=1,xpos=46,ypos=-134]{\footnotesize Copyright \textcopyright\:2014 by some company.}
\begin{document}
Stuff
\newpage
More stuff
\end{document}
In this MWE, the watermark is on pages 2 to \lastdocpage. I have tried \pages=2-{\lastdocpage-2}but this did not work.