Header

Header()

Description

This method is used to render the page header. It is called automatically by AddPage() and should not be called directly by the application. The ForgePDF implementation is empty, so you should create a subclass and override the method if you want specific processing.

Example

class PDF extends ForgePDF
{
    function Header()
    {
        // Select Arial bold 15
        $this->SetFont('Arial', 'B', 15);
        // Move to the right
        $this->Cell(80);
        // Framed title
        $this->Cell(30, 10, 'Title', 1, 0, 'C');
        // Line break
        $this->Ln(20);
    }
}

See also

Footer