You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/changes/1.1.0.md
+1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
- Shadow : Support for Type Inner & Reflection - [@devX2712](https://github.com/devX2712) in [#788](https://github.com/PHPOffice/PHPPresentation/pull/787)
36
36
- PowerPoint2007 Reader
37
37
- PowerPoint2007 Writer
38
+
- Presentation : Added ability to add a slide at any position - [@Progi1984](https://github.com/Progi1984) in [#810](https://github.com/PHPOffice/PHPPresentation/pull/810)
Copy file name to clipboardexpand all lines: docs/usage/slides/introduction.md
+33-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,38 @@
1
1
# Introduction
2
2
3
-
Slides are pages in a presentation. Slides are stored as a zero based array in `PHPPresentation` object. Use the method `createSlide` to create a new slide and retrieve the slide for other operation such as creating shapes for that slide.
3
+
Slides are pages in a presentation. Slides are stored as a zero based array in `PHPPresentation` object.
4
4
5
-
## Name
5
+
## Create slide
6
+
7
+
Use the method `createSlide` to create a new slide and retrieve the slide for other operation such as creating shapes for that slide. The slide will be added at the end of slides collection.
8
+
9
+
```php
10
+
<?php
11
+
12
+
$slide = $presentation->createSlide();
13
+
```
14
+
15
+
## Add slide to a specific position
16
+
17
+
Use the method `addSlide` to add an existing slide to a specific position. Without the parameter `$position`, it will be added at the end of slides collection.
0 commit comments