open .docx in Fedora with docx2txt

Docx2txt is a command-line tool that converts .docx files to plain text. (It does not convert .doc files.)
(source of this text https://www.computerhope.com/issues/ch001752.htm)
Download the source from Sourceforge at https://sourceforge.net/projects/docx2txt/. Extract the archive:

to install perl, unzip and make.

sudo dnf update && sudo dnf install perl unzip make
daarna cd dox2txt-1.4

en sudo make

Docx2txt is now installed as docx2txt.sh. For instance, to convert the file word-document.docx to a text file, you can run: docx2txt.sh word-document.docx textname.txt

If that does not work try this

(https://ask.fedoraproject.org/en/question/7606/how-to-execute-sh-programs-in-fedora/)

go to /usr/local/bin and find docx2txt.sh
do chmod +1 docx2txt.sh (to change permissions)
do sh docx2txt.sh (to pass it to shell interpreter)

now go to .docx file and try to open with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s