Skip to content

Commit

Permalink
Merge pull request #337 from Progi1984/issue226
Browse files Browse the repository at this point in the history
#226 : Reader : Support of Slide Note
  • Loading branch information
Progi1984 committed Mar 5, 2017
2 parents 3ae7102 + 05b1fcd commit 30d61df
Show file tree
Hide file tree
Showing 6 changed files with 691 additions and 528 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -15,7 +15,9 @@
### Features
- ODPresentation Writer : Show/Hide Value / Name / Series Name in Chart - @Progi1984 GH-272
- ODPresentation Writer : Axis Bounds in Chart - @Progi1984 GH-269
- PowerPoint2007 Reader : Support of Table - @Progi1984 GH-240
- PowerPoint97 Reader : Support of Slide Note - @Progi1984 GH-226
- PowerPoint2007 Reader : Support of Shape Table - @Progi1984 GH-240
- PowerPoint2007 Reader : Support of Slide Note - @Progi1984 GH-226
- PowerPoint2007 Writer : Implement character spacing - @jvanoostrom GH-301
- PowerPoint2007 Writer : Axis Bounds in Chart - @Progi1984 GH-269
- PowerPoint2007 Writer : Implement Legend Key in Series for Chart - @Progi1984 GH-319
Expand Down
12 changes: 12 additions & 0 deletions samples/Sample_Header.php
Expand Up @@ -86,6 +86,7 @@
* @param \PhpOffice\PhpPresentation\PhpPresentation $phpPresentation
* @param string $filename
* @param array $writers
* @return string
*/
function write($phpPresentation, $filename, $writers)
{
Expand Down Expand Up @@ -113,6 +114,7 @@ function write($phpPresentation, $filename, $writers)
* Get ending notes
*
* @param array $writers
* @return string
*/
function getEndingNotes($writers)
{
Expand Down Expand Up @@ -296,6 +298,16 @@ protected function displayPhpPresentationInfo(PhpPresentation $oPHPPpt)
$this->append('<dt>Background Image</dt><dd><img src="data:image/png;base64,'.base64_encode($sBkgImgContents).'"></dd>');
}
}
$oNote = $oSlide->getNote();
if ($oNote->getShapeCollection()->count() > 0) {
$this->append('<dt>Notes</dt>');
foreach ($oNote->getShapeCollection() as $oShape) {
if ($oShape instanceof RichText) {
$this->append('<dd>' . $oShape->getPlainText() . '</dd>');
}
}
}

$this->append('</dl>');
$this->append('</div>');

Expand Down

0 comments on commit 30d61df

Please sign in to comment.