Skip to content

Commit 1979ef5

Browse files
author
James Brundage
committed
feat: OpenXML.PowerPoint.File.get_Slides ( Fixes #8 )
1 parent 624bdac commit 1979ef5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$slidesInOrder = @($this.Parts[$this.Parts.keys -match '/slide\d+\.xml$'] |
2+
Sort-Object { $_.Uri -replace '\D' -as [int]} |
3+
Select-Object)
4+
5+
6+
foreach ($slide in $slidesInOrder) {
7+
[PSCustomObject][Ordered]@{
8+
PSTypeName = 'OpenXML.PowerPoint.Slide'
9+
FilePath = $this.FilePath
10+
Uri = $slide.Uri
11+
SlideNumber = $slide.Uri -replace '\D' -as [int]
12+
Content = $slide.Content
13+
ContentType = $slide.ContentType
14+
}
15+
}
16+
17+

0 commit comments

Comments
 (0)