I am trying to apply specific margins for few pages but it applies to all the pages. I have tried few solutions on stack tex, but none worked for me.
For the first 3 pages I don't want the margins and should act as default (by default I mean when I comment the \usepackage[left=3.5cm,top=2.5cm,right=1.25cm,bottom=1.25cm]{geometry}
line and the result it shows). But for the other section pages the margin changes should be applied.
Can you please help me out here? Thank you.
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{fancybox}
\usepackage{float}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{lipsum}
\usepackage{mwe}
\linespread{1.5}
\usepackage[left=3.5cm,top=2.5cm,right=1.25cm,bottom=1.25cm]{geometry}
\begin{document}
\begin{center}
\begin{tikzpicture}[remember picture,overlay]
\draw[black,line width=2pt] ([xshift=-1.5cm,yshift=-1.5cm]current page.north east)
coordinate (A)--([xshift=1.5cm,yshift=-1.5cm]current page.north west)
coordinate(B)--([xshift=1.5cm,yshift=1.5cm]current page.south west)
coordinate (C)--([xshift=-1.5cm,yshift=1.5cm]current page.south east)
coordinate(D)--cycle;
\end{tikzpicture}
\thispagestyle{empty}
Title
Subtitle
\begin{figure}[h]
\centering
\includegraphics[height=0.4\textwidth,width=1\textwidth]{example-image-a}
\end{figure}
{\large \textbf{Project Name}} \\
{\normalsize On} \\
{\large \textbf{Project Title}} \\
\textit{subtext} \\
{\large \textbf{Degree}} \\
{\normalsize \textbf{In}} \\
{\large \textbf{Degree Title}} \\
{\normalsize \textbf{Submitted by}} \\
{\normalsize Name} \\
{\normalsize \textbf{Under}} \\
Name \\
{\normalsize \textbf{Under}} \\
Name \\
SCHOOL name \\
Address. \\
Year
\end{center}
\newpage
\vspace*{-30pt}
\begin{tikzpicture}[remember picture,overlay]
\draw[black,line width=3pt] ([xshift=-1cm,yshift=-1cm]current page.north east)
coordinate (A)--([xshift=1cm,yshift=-1cm]current page.north west)
coordinate(B)--([xshift=1cm,yshift=1cm]current page.south west)
coordinate (C)--([xshift=-1cm,yshift=1cm]current page.south east)
coordinate(D)--cycle;
\end{tikzpicture}
\begin{center}
\thispagestyle{empty}
\thispagestyle{empty}
Title
Subtitle
\begin{figure}[H]
\centering
\includegraphics[height=0.4\textwidth,width=1\textwidth]{example-image-a}
\end{figure}
{\large INST NAME} \\ [10pt]
{\LARGE \textbf{\textcolor{black}{TITLE}}}
\end{center}
\newpage
\tableofcontents
\cleardoublepage
\pagenumbering{arabic}
\newpage
\section{Intro}
\lipsum[2-4]
\newpage
\section{Title1}
\lipsum[1-2]
\newpage
\section{Title2}
\lipsum[1-2]
\end{document}