Skip to content

Commit 30d61df

Browse files
authored
Merge pull request #337 from Progi1984/issue226
#226 : Reader : Support of Slide Note
2 parents 3ae7102 + 05b1fcd commit 30d61df

File tree

6 files changed

+691
-528
lines changed

6 files changed

+691
-528
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
### Features
1616
- ODPresentation Writer : Show/Hide Value / Name / Series Name in Chart - @Progi1984 GH-272
1717
- ODPresentation Writer : Axis Bounds in Chart - @Progi1984 GH-269
18-
- PowerPoint2007 Reader : Support of Table - @Progi1984 GH-240
18+
- PowerPoint97 Reader : Support of Slide Note - @Progi1984 GH-226
19+
- PowerPoint2007 Reader : Support of Shape Table - @Progi1984 GH-240
20+
- PowerPoint2007 Reader : Support of Slide Note - @Progi1984 GH-226
1921
- PowerPoint2007 Writer : Implement character spacing - @jvanoostrom GH-301
2022
- PowerPoint2007 Writer : Axis Bounds in Chart - @Progi1984 GH-269
2123
- PowerPoint2007 Writer : Implement Legend Key in Series for Chart - @Progi1984 GH-319

samples/Sample_Header.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
* @param \PhpOffice\PhpPresentation\PhpPresentation $phpPresentation
8787
* @param string $filename
8888
* @param array $writers
89+
* @return string
8990
*/
9091
function write($phpPresentation, $filename, $writers)
9192
{
@@ -113,6 +114,7 @@ function write($phpPresentation, $filename, $writers)
113114
* Get ending notes
114115
*
115116
* @param array $writers
117+
* @return string
116118
*/
117119
function getEndingNotes($writers)
118120
{
@@ -296,6 +298,16 @@ protected function displayPhpPresentationInfo(PhpPresentation $oPHPPpt)
296298
$this->append('<dt>Background Image</dt><dd><img src="data:image/png;base64,'.base64_encode($sBkgImgContents).'"></dd>');
297299
}
298300
}
301+
$oNote = $oSlide->getNote();
302+
if ($oNote->getShapeCollection()->count() > 0) {
303+
$this->append('<dt>Notes</dt>');
304+
foreach ($oNote->getShapeCollection() as $oShape) {
305+
if ($oShape instanceof RichText) {
306+
$this->append('<dd>' . $oShape->getPlainText() . '</dd>');
307+
}
308+
}
309+
}
310+
299311
$this->append('</dl>');
300312
$this->append('</div>');
301313

0 commit comments

Comments
 (0)