[Tex/LaTex] Text on background-image footer and header

backgroundsfancyhdrfullpageheader-footerpositioning

I'm trying to create a template for my article, which has an image on the header, and on on the footer. I also want to put text on these images.
The result would look like this :

Result

(Blue and green zone are images)

I need :

  • Full page width footer/header
  • Image in their backgrounds
  • Text written on these, positioned where i want

I already have my header and my footer full width (with the fancyhdr package), but i'm struggling to write on it.

I already have this for the header (works but i don't know how to position the text) :

\usepackage{fancyhdr}
 \newcommand{\imageheader}{
 \begin{titlepage}
  \begin{center}
   \begin{textblock*}{3cm}(0mm,-3mm)
    \includegraphics[scale=0.75]{header}
   \end{textblock*}
  \end{center}
 \end{titlepage} 
}

\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\imageheader **my title**}

And for the footer :

\lfoot{
 \makebox[\textwidth]{\includegraphics[width=\paperwidth]{footer}
 }
}

\makebox was the only thing i found to have a full-width footer, i've used several packages without really knowing how they work, so now i'm a bit lost.

Best Answer

If you know how to use tikz:

\documentclass{article}
\usepackage{everypage}
\usepackage{tikzpagenodes}
\usetikzlibrary{calc}
\usepackage{mwe}

\pagestyle{empty}

\AddEverypageHook{\begin{tikzpicture}[remember picture,overlay]
\fill[blue] (current page.north west) rectangle (current page text area.north -| current page.east);
\node[fill=white] at (current page header area) {Insert pretty much anything anywhere};
\fill[blue] (current page.south west) rectangle (current page footer area.north -| current page.east);
\end{tikzpicture}}

\begin{document}
\lipsum[1-8]
\end{document}

full page with headers

Related Question