I am trying to generate a template like this, a border and a table-like header and footer for all pages
Here is the code that I put together
\documentclass[a4paper]{article}
\usepackage[
top=25.4mm,
bottom=25.4mm,
left=25.4mm,
right=25.4mm
]{geometry}
\usepackage{tikz}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
%This is to draw a rectangle as border
\fancyhead[L]{\tikz[overlay, remember picture] {
\draw ([shift={(24pt,-24pt)}]current page.north west) rectangle ++(544pt,-794pt);
%This is to draw the table
\begin{tabular}{|m{3.0cm}|m{10.0cm}|m{2.5cm}|}
\hline
\multicolumn{2}{|l|}{Photometry and Radiometry Calibration Document} \ \hline
PAR 117 &
\begin{tabular}[c]{@{}l@{}}Revision\ Issue
\end{tabular}
\ \hline
\end{tabular}
} }
Note that I am drawing a rectangle in the header as the border for all pages, but I either get the border or the tables and not both at the same time.
Can someone fix the issue or give a tip? Thanks



\documentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. At the moment we have to guess what packages etc you are using before we can compile your code. – Aug 12 '20 at 02:20