# Using fancyhdr to handle headers of different sizes [duplicate]

I want to use fancyhdr in the letter document class to define a custom header for the first page only. I know that I can use \fancypagestyle to do this (as is discussed here), but the problem is that my first-page header contains several rows, and I don't want the following pages to contain white space at the top that results from the 'missing' header. Is there a fix for this?

## marked as duplicate by StrongBad, Ludovic C., Claudio Fiandrino, Reinstate Monica - M. Schröder, Peter JanssonNov 23 '13 at 13:49

• You can use \thispagestyle command and a separate header for that. Also, change the headheight accordingly using geometry. – user11232 Sep 24 '13 at 0:50
I wanted specific margins in my front-page, and following code helped me to specify margins for only that page. After \begin{titlepage} I put:
\usepackage[paper=a4paper]{geometry}