Hello
I try to put a header on each page of my PDF.
It's work for the footer :
For the header I do :
I have a header on the first page not on the second
Why?
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é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été d'EDF. Toute communication, reproduction, publication, mê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}} à {{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?