File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
AUTOMATION/analyzing and writing .docx file Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Analyze any ` .docx ` file for bold, underlined, italicized text
2
+ This program helps you find all the bold, underlined and italicized text in a word document.
3
+
4
+ First create a new folder and then create a file named ` extract.py ` inside it and copy paste the code to it.
5
+ Then you need to install ` python-docx `
6
+ ``` bash
7
+ $ pip install python-docx
8
+ ```
9
+ Copy your word document for example, ` process_design_notes.docx ` into the current working directory(CWD).
10
+
11
+ The CWD should now have two files i.e. ** extract.py** and ** process_design_notes.docx** .
12
+
13
+ Open a terminal or command prompt in CWD and type
14
+ ``` bash
15
+ # for linux
16
+ python3 extract.py process_design_notes.docx
17
+ # for windows
18
+ python extract.py process_design_notes.docx
19
+ ```
20
+ After typing above command the program will execute on the word document and append the extracted bold, italicized, underlined words to it.
You can’t perform that action at this time.
0 commit comments