Forum How do I...?

Header on each page

Olivier.Riche
Hello

I try to put a header on each page of my PDF.
It's work for the footer :
@page{
@bottom-right { 
        content: flow(footer);
    }
}
.footer { 
	flow: static(footer, start);
}
the div of my footer
<div class="footer">
<TABLE  CELLSPACING=0 style='width: 100%;font-size: 6pt;position: absolute;bottom:0;'>
    <TR>
        <TD COLSPAN=3>
            <HR/>
        </TD>
    </TR>
    <TR>
        <TD style='width: 33%;text-align:left;' class='piedPageGauche'>
            <B>EDF - DPI<BR/>
            DPIH - DTG<BR>
            D&eacute;partement Surveillance</B>
        </TD>
        <TD style='width: 33%;text-align:center;' class='piedPageCentre'>
            <BR/>
        </TD>
        <TD style='width: 33%;text-align:right;' class='piedPageDroit'>
            <B>Service Environnement Aquatique<br>
            21 Avenue de l'Europe    B.P. 41<br>
            38040 GRENOBLE Cedex 9 </B>
        </TD>
    </TR>
    <TR>
        <TD COLSPAN=3><HR/>
        </TD>
    </TR>
    <TR>
        <TD COLSPAN=3 >
            Copyright EDF - Ce document est la propri&eacute;t&eacute; d'EDF. Toute communication, reproduction, publication, m&ecirc;me partielle, est interdite sauf autorisation.
        </TD>
    </TR>
</TABLE>
</div>

For the header I do :
@page { 
    @top-left {
	content: flow(header);
    }
    @bottom-right { 
        content: flow(footer);
    }
}
.footer { 
	flow: static(footer, start);
}
.header { 
	flow: static(header, end);
}
<div class="header">
<div style="width: 100%;font-size: 8pt;">
	EDF DIVISION PRODUCTION INGENIERIE HYDRAULIQUE<BR/>DTG
</div>
<TABLE style="width: 100%;" CELLSPACING=0>
	<TR>
        <TD style="width: 45%;padding: 4px; font-size: 16pt;">
			<B>##QUOTIDIEN_TITRE##</B>
		</TD>
		<TD style="width: 20%;"><img src="##LOGO_EDF##" /></TD>
		<TD style="width: 31%;font-size: 20pt;text-align: right;" ><B>ALPES NORD<BR>JURA<BR>HAUTE-LOIRE</B></TD>
                                <TD style="width: 4%;"></TD>
    </TR>
</TABLE>
<TABLE style="width: 100%;" CELLSPACING=0>
	<TR>
        <TD style="width: 50%;font-size: 14pt;"><B>{{DATE_BULLETIN}} &agrave; {{HEURE}}</B></TD>
		<TD style="width: 50%;font-size: 12pt;text-align: right;" >Prochain bulletin : ##BULLETIN_JOUR_SUIVANT## ##BULLETIN_PARTIE_JOURNEE_SUIVANTE##</TD>
    </TR>
</TABLE>
<div style="width: 100%; height:5pt; background-color: #b3b3b3"></div>
</div>


I have a header on the first page not on the second

Why?
mikeday
This is not valid, as there is no "end" keyword:
.header { 
	flow: static(header, end);
}
Olivier.Riche
OK
If I write that :
.header { 
	flow: static(header, start);
	font-family: arial;
}


I just have the first line of my header :
	EDF DIVISION PRODUCTION INGENIERIE HYDRAULIQUE

Edited by Olivier.Riche

mikeday
Perhaps the @page margin-top is too small to show the full header, try making the top margin bigger.
Olivier.Riche
Thx