I'm not completely sure if this topci is repeated, but anyway... I'm writing some company reports that have a special header and footer layout containing tables. I have been able to configure the layout using fancyhdr, but the tables go out of the page. Below I provide images of the desired layout and the obtained, and also the code I'm using.
Desired layout - Header
Desired layout - Footer
Result - Header
Result - Footer
As you can see, the text above the footer overlaps with the line of the table.
Finally, the code:
\documentclass[letterpaper,10pt,openany]{report}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage[spanish]{babel}
\usepackage{graphicx}
\usepackage{float}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[paperwidth=21cm, paperheight=28.8cm, top=3.55cm, left=2.03cm, bottom=7.28cm, right=1.27cm]{geometry}
% Title Page
\title{}
\author{}
\setlength{\headheight}{127.69005pt}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
\setlength{\footskip}{0pt}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers
\fancyhead[C]{%
\begin{tabular}{|m{3.6375cm}|m{5.3475cm}|m{7.0275cm}|m{1.6875cm}|}
\hline
\multicolumn{4}{|m{17.66cm}|}{\centering \vspace{1.5\baselineskip}\includegraphics[width=3cm]{LOGO.png}} \\[1.23cm] \hline
Cliente: & REF. & \centering Lugar: Por definir & Hoja: \\[0.77cm] \hline
\multicolumn{3}{|m{16.10cm}|}{\centering \vspace{1.5\baselineskip} Titulo} & \multicolumn{1}{m{1.6cm}|}{Total:} \\[0.82cm] \hline
\end{tabular}%
}
\fancyfoot[CE,CO,LE,LO,RE,RO]{} %% clear out all footers
\fancyfoot[C]{%
\begin{tabular}{|m{5.67cm}|m{5.75cm}|m{5.1cm}|m{1.52cm}|}
\hline
& Preparado por: & Fecha: & Ver. \\[0.96cm] \hline
\end{tabular}%
}
\begin{document}
What am I exactly doing wrong? Thanks in advance!
Charlie