1 | <HTML>
|
---|
2 | <HEAD>
|
---|
3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
---|
4 | <TITLE>Header</TITLE>
|
---|
5 | <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
|
---|
6 | </HEAD>
|
---|
7 | <BODY>
|
---|
8 | <H2>Header</H2>
|
---|
9 | <TT>Header()</TT>
|
---|
10 | <H4 CLASS='st'>Version</H4>
|
---|
11 | 1.0
|
---|
12 | <H4 CLASS='st'>Description</H4>
|
---|
13 | This method is used to render the page header. It is automatically called by AddPage() and
|
---|
14 | should not be called directly by the application. The implementation in FPDF is empty, so
|
---|
15 | you have to subclass it and override the method if you want a specific processing.
|
---|
16 | <H4 CLASS='st'>Example</H4>
|
---|
17 | <TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
---|
18 | <TT>
|
---|
19 | class PDF extends FPDF<BR>
|
---|
20 | {<BR>
|
---|
21 | function Header()<BR>
|
---|
22 | {<BR>
|
---|
23 | //Select Arial bold 15<BR>
|
---|
24 | $this->SetFont('Arial','B',15);<BR>
|
---|
25 | //Move to the right<BR>
|
---|
26 | $this->Cell(80);<BR>
|
---|
27 | //Framed title<BR>
|
---|
28 | $this->Cell(30,10,'Title',1,0,'C');<BR>
|
---|
29 | //Line break<BR>
|
---|
30 | $this->Ln(20);<BR>
|
---|
31 | }<BR>
|
---|
32 | }
|
---|
33 | </TT>
|
---|
34 | </TD></TR></TABLE><BR>
|
---|
35 | <H4 CLASS='st'>See also</H4>
|
---|
36 | <A HREF="footer.htm">Footer()</A>.
|
---|
37 | <H6></H6>
|
---|
38 | <HR>
|
---|
39 | <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
|
---|
40 | </BODY>
|
---|
41 | </HTML>
|
---|