Skip to content

Commit 269660f

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: OpenXML.PowerPoint.File.get_Text ( Fixes #9 )
1 parent 32c468e commit 269660f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

OpenXML.types.ps1xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ foreach ($slide in $slidesInOrder) {
7979

8080

8181

82+
</GetScriptBlock>
83+
</ScriptProperty>
84+
<ScriptProperty>
85+
<Name>Text</Name>
86+
<GetScriptBlock>
87+
$this.Slides.Content |
88+
Select-Xml -XPath '//a:t' -Namespace @{a='http://schemas.openxmlformats.org/drawingml/2006/main'} |
89+
Foreach-Object {
90+
if ($_.Node.LocalName -eq 't') {
91+
$_.Node.InnerText
92+
} else {
93+
[Environment]::NewLine
94+
}
95+
}
8296
</GetScriptBlock>
8397
</ScriptProperty>
8498
</Members>

0 commit comments

Comments
 (0)