File tree Expand file tree Collapse file tree 4 files changed +246
-23
lines changed
src/PhpPresentation/Reader Expand file tree Collapse file tree 4 files changed +246
-23
lines changed Original file line number Diff line number Diff line change 15
15
### Features
16
16
- ODPresentation Writer : Show/Hide Value / Name / Series Name in Chart - @Progi1984 GH-272
17
17
- ODPresentation Writer : Axis Bounds in Chart - @Progi1984 GH-269
18
+ - PowerPoint97 Reader : Support of Slide Note - @Progi1984 GH-226
18
19
- PowerPoint2007 Reader : Support of Shape Table - @Progi1984 GH-240
19
20
- PowerPoint2007 Reader : Support of Slide Note - @Progi1984 GH-226
20
21
- PowerPoint2007 Writer : Implement character spacing - @jvanoostrom GH-301
Original file line number Diff line number Diff line change 9
9
use PhpOffice \PhpPresentation \Shape \RichText ;
10
10
11
11
$ pptReader = IOFactory::createReader ('PowerPoint2007 ' );
12
- $ oPHPPresentation = $ pptReader ->load ('results/Sample_01_Simple .pptx ' );
12
+ $ oPHPPresentation = $ pptReader ->load ('resources/Sample_12 .pptx ' );
13
13
14
14
$ oTree = new PhpPptTree ($ oPHPPresentation );
15
15
echo $ oTree ->display ();
Original file line number Diff line number Diff line change @@ -299,10 +299,12 @@ protected function displayPhpPresentationInfo(PhpPresentation $oPHPPpt)
299
299
}
300
300
}
301
301
$ oNote = $ oSlide ->getNote ();
302
- foreach ($ oNote ->getShapeCollection () as $ oShape ) {
302
+ if ($ oNote ->getShapeCollection ()-> count () > 0 ) {
303
303
$ this ->append ('<dt>Notes</dt> ' );
304
- if ($ oShape instanceof RichText) {
305
- $ this ->append ('<dd> ' . $ oShape ->getPlainText () . '</dd> ' );
304
+ foreach ($ oNote ->getShapeCollection () as $ oShape ) {
305
+ if ($ oShape instanceof RichText) {
306
+ $ this ->append ('<dd> ' . $ oShape ->getPlainText () . '</dd> ' );
307
+ }
306
308
}
307
309
}
308
310
You can’t perform that action at this time.
0 commit comments