We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070c9c7 commit 00e3ceeCopy full SHA for 00e3cee
OpenXML.types.ps1xml
@@ -138,4 +138,24 @@ foreach ($slide in $slidesInOrder) {
138
</ScriptProperty>
139
</Members>
140
</Type>
141
+ <Type>
142
+ <Name>OpenXML.Word.File</Name>
143
+ <Members>
144
+ <ScriptProperty>
145
+ <Name>Text</Name>
146
+ <GetScriptBlock>
147
+ @($this.Parts['/word/document.xml'].Content |
148
+ Select-Xml -XPath '//w:t|//w:p' -Namespace @{w='http://schemas.openxmlformats.org/wordprocessingml/2006/main'} |
149
+ Foreach-Object {
150
+ if ($_.Node.LocalName -eq 't') {
151
+ $_.Node.InnerText
152
+ } else {
153
+ [Environment]::NewLine
154
+ }
155
+
156
+ }) -join ''
157
+ </GetScriptBlock>
158
+ </ScriptProperty>
159
+ </Members>
160
+ </Type>
161
</Types>
0 commit comments