# A logo on every page

I'm trying to have a logo typeset on every page, in the upper left corner. I'm using fancyhdr and I'm defining the logo position in the header by \lhead{\includegraphics{image.png}}. The full source code of the document is listed at the end of this post.

I'm typesetting 2 pages. I'm facing the following issue.

While the logo position is OK on the first and 2nd page, the text on the first page begins in the header while it begins correctly on the second page.

This is the first page:

This is the second page:

I tried with different document classes: there are some changes but in all cases the first page is not typeset properly. The only way around I've found so far is the add a ~\vspace{1.5cm} at the beginning of the document: that's dirty...

The source code is as follows:

\documentclass[10pt]{article}
\usepackage[a4paper, top=25mm, bottom=20mm,
left=15mm, right=15mm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{showframe}

%% ============================================
\begin{document}
\pagestyle{fancy}
\fancyhf{}

\blindtext

\newpage
\blindtext

\end{document}


Any idea about what I'm doing wrong ?

• Probably same problem as tex.stackexchange.com/questions/176869/…, try changing the \headheight. Jan 5 '17 at 11:50
• Also there are easier methods for placing a logo on all pages. I tend to use the old package eso-pic, there are others Jan 5 '17 at 11:53

I think you could start by trying someting like this in your preamble :

\fancypagestyle{logo}{
\fancyhf{}

\pagestyle{logo}