line 21 : Remove 'first', so the same header is displayed on every pages
$header = $rtf->addHeader();
line 25 : Insert the following lines.
// footer
$footer = $rtf->addFooter();
$footer->addImage('sources/cats.jpg', $parFormat);
$footer->writeText('Another image in footer.', new PHPRtfLite_Font(), new PHPRtfLite_ParFormat());
Then run the example.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How I can do a image (jpg) in header and another image in footer?
Modify samples/images.php as is :
line 21 : Remove 'first', so the same header is displayed on every pages
line 25 : Insert the following lines.
// footer
$footer = $rtf->addFooter();
$footer->addImage('sources/cats.jpg', $parFormat);
$footer->writeText('Another image in footer.', new PHPRtfLite_Font(), new PHPRtfLite_ParFormat());
Then run the example.