diff options
| author | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
|---|---|---|
| committer | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
| commit | 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch) | |
| tree | 84be794a2481e356a7784557a6f9fb6fbf29cfdd /misc/readDocx.py | |
Diffstat (limited to 'misc/readDocx.py')
| -rw-r--r-- | misc/readDocx.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/readDocx.py b/misc/readDocx.py new file mode 100644 index 0000000..a29b18d --- /dev/null +++ b/misc/readDocx.py @@ -0,0 +1,12 @@ +#! usr/bin/env python3 + +# readDocx.py + +import docx + +def getText(filename): + doc = docx.Document(filename) + fullText = [] + for para in doc.paragraphs: + fullText.append(para.text) + return '\n'.join(fullText) |
