diff --git a/CHANGELOG.md b/CHANGELOG.md index 794c47ee..5e8f09d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ This release changed PHPWord license from LGPL 2.1 to LGPL 3. ### Bugfixes -- ... +- Header: All images added to the second header were assigned to the first header - @basjan GH-222 ### Deprecated diff --git a/samples/Sample_12_HeaderFooter.php b/samples/Sample_12_HeaderFooter.php index 8e053286..0fd56edc 100644 --- a/samples/Sample_12_HeaderFooter.php +++ b/samples/Sample_12_HeaderFooter.php @@ -25,6 +25,7 @@ $table->addCell(4500)->addImage( // Add header for all other pages $subsequent = $section->addHeader(); $subsequent->addText("Subsequent pages in Section 1 will Have this!"); +$subsequent->addImage('resources/_mars.jpg', array('width' => 80, 'height' => 80)); // Add footer $footer = $section->addFooter();