to all
Previously asked the question how to add the borders for selected pages,i got the answer but i'm facing problem.I'm using two types of page numbering roman and Arabic.\AddToShipoutPictureBG{\ifnum\value{page}<3 this line will select the pages.The boarders will come both roman and Arabic pages. but i want only in the roman page numbered page only not in the Arabic page numbered pages. so plz help me what changes i have to make...
Thank you
\documentclass[12pt]{book}
\usepackage{tikz}
\usepackage{eso-pic}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\AddToShipoutPictureBG{\ifnum\value{page}<3
\begin{tikzpicture}[overlay,remember picture]
\draw [line width=3pt]
($ (current page.north west) + (1.5cm,-2.0cm) $)
rectangle
($ (current page.south east) + (-1.5cm,1.8cm) $);
\draw [line width=1pt]
($ (current page.north west) + (1.65cm,-2.15cm) $)
rectangle
($ (current page.south east) + (-1.65cm,1.95cm) $);
\end{tikzpicture}%
\fi}
\begin{document}
\pagenumbering{roman}
\begin{titlepage}
\section*{\large{DECLARATION}}
%-----some paragraph-------
\newpage
\begin{center}
\section*{\large{ACKNOWLEDGEMENT}}
\end{center}
%-----some paragraph-------
\end{titlepage}
\newpage
\tableofcontents
\newpage
\pagenumbering{arabic}
%-----Start chapters-------
\end{document}