# how to add the page border for first two pages in latex?

I'm beginner in latex. I'm trying crate a my internship report so i want to crate a page boarder for first two pages. i created the first page but at the second page is not getting boarders, it getting header and footers what i given. so please help me to put the boarder at second page also....

here what i have tried,

\documentclass[12pt]{book}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}

\pagenumbering{roman}
\begin{titlepage}

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

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



(in code I'm not mention the header and footers)

I searched lots but i got only how to add one page boarders so help me to put border for two pages also

Welcome! Here is one possible way using eso-pic.

\documentclass[12pt]{book}
\usepackage{tikz}
\usepackage{eso-pic}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\AddToShipoutPictureBG{\ifnum\value{page}<3% <- change this if you want more
% or less pages to have a frame
\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}

\begin{titlepage}

\section*{DECLARATION}

%-----some paragraph-------

\newpage
\thispagestyle{empty}
\begin{center}
\large\bfseries ACKNOWLEDGEMENT
\end{center}

%-----some paragraph-------
\end{titlepage}
\newpage
\chapter{Some chapter}
%-----Start chapters-------
\end{document}


• thank u so much for your answer.I have small problem i tried your code, it works for me but the board is applying 1St chapter also and the second page acknowledgement's page board is coming along with header and footers .what changes i have to make? – sathyamurthy Mar 7 '20 at 5:45
• @sathyamurthy Better now? – user194703 Mar 7 '20 at 5:50
• Actually better but i don't want borders in chapters can u change that ? it is possible? – sathyamurthy Mar 7 '20 at 5:52
• @sathyamurthy I am sorry, I cannot understand what you are saying. What does " i don't want borders in chapters" mean? – user194703 Mar 7 '20 at 5:53
• Actually in the book template chapters (only chapter page)did not have headers and footers in the next page (same chapter only) header and footers will come.but it is overlapping the header and footers with the boarders in the next page (chapter's second page) – sathyamurthy Mar 7 '20 at 5:58