How to use Antiword on Linux

Antiword is the ideal LibreOffice alternative, running in Terminal, perfect for "slow" computers or systems that do not need a graphical environment.

Continue reading TipsMake's article below to learn how to use Antiword on Linux.

Antiword is compatible with FreeBSD, BeOS, OS/2, Mac OS X, Amiga, VMS, NetWare, Plan9, EPOC, Zaurus PDA, MorphOS, Tru64/OSF, Minix, Solaris and DOS operating systems.

How to use Antiword on Linux Picture 1

1. Main features of Antiword

Antiword allows users to view and convert MS Word documents from the command line. We can convert to the formats below:

- Plain text
- Text format
- PDF
- Postscript
- XML ​​(only DocBook supported)

2. Limitations of Antiword

Antiword was last updated in 2005 and is not compatible with DOCX documents. Therefore, users cannot use Antiword to edit their documents.

3. Install Antiword on Linux

If the Linux distribution you are using has a built-in package management system, you can search for Antiword in one of the repositories.

If not download the .tar.gz archive from the Antiword page on Freecode. Then extract the file, access the antiword-0.37 folder and run the command below:

make

sudo make install

4. Use Antiword on Linux

In the instructions below TipsMake uses a resume example as a sample document. When opening this document in LibreOffice, it looks like this:

How to use Antiword on Linux Picture 2

The most basic way to use Antiword is to display and open documents:

antiword resume.doc

How to use Antiword on Linux Picture 3

As you can see, the default command doesn't preserve document formatting like font size, italics, and underlining, but the text looks more readable.

To display certain information, we use the "-f" flag in the command:

antiword -f resume.doc

How to use Antiword on Linux Picture 4

The above command does not display the correct WYSIWYG format, rather it displays markup-like syntax. For example, underlined text it displays as _underlined text_ and bold text with an asterisk *bold text*.

To convert a Word document into a PDF file, we must specify the paper size using the "-a" flag. Antiword supports paper sizes including: 10x14, a3, a4, a5, b4, b5, folio, letter, note, quarto, small size.

If you want, you can use the same paper size when converting to Postscript documents by using the "-p" flag.

For example below, convert a document to small-sized PDF format:

antiword -a tabloid resume.doc > resume-tabloid.pdf

Below is the resulting PDF file displayed in Okular:

How to use Antiword on Linux Picture 5

The underline and hyperlink in the email address are gone, overall the conversion was successful.

If you want to convert to Postscript, you can use "-L" to print in landscape mode.

The example below will convert the document to DocBook format:

antiword -x db resume.doc > resume-docbook.docbook

The conversion process preserves metadata, including author name and document creation date. The raw XML format looks like this:

How to use Antiword on Linux Picture 6

DocBook files in LibreOffice have the following format:

How to use Antiword on Linux Picture 7

Although it does not look similar to the original Word document, the file structure remains the same.

It can be seen that using Antiword to convert Word files to DocBook format works better than converting to XML format.

The above article TipsMake has just shown you how to use Antiword on Linux. In addition, readers can refer to some articles available on TipsMake to learn how to install Microsoft Office on Linux.


Refer to the article using Telegram on Linux command, this is a quite popular cloud-based messaging application, using Telegram on Linux command is a difference of the Linux operating system.

4.5 ★ | 2 Vote

May be interested

  • 10 reasons to switch to Linux right in 201210 reasons to switch to Linux right in 2012
    some people 'denigrate' the diversity of linux to cause fragmentation problems, but in fact this is one of the best strengths of linux. users have numerous linux distributions (distros) to choose from, whether it's mint or ubuntu, which is top-notch, or fedora with a variety of features for businesses and especially security.
  • What is Puppy Linux? Everything you need to know about Puppy LinuxWhat is Puppy Linux? Everything you need to know about Puppy Linux
    a linux distro that can run on virtually any computer with minimal configuration and computing resources is puppy linux.
  • The 5 most awaited things in Linux in 2019The 5 most awaited things in Linux in 2019
    linux has improved a lot in the past few years. some people who are not knowledgeable about technology have moved from windows to linux and responded very positively to this operating system.
  • How does the Linux Kernel work?How does the Linux Kernel work?
    the linux kernel is like a bridge that allows computing communication between applications and hardware, as well as managing the system's resources.
  • How to Learn LinuxHow to Learn Linux
    learning linux is not a one day task but it isn't herculean either. linux can be a good and safe os for both home and enterprise level users. keep in mind before saying 'hey, i'm going to start working on linux from tomorrow' that there is...
  • What do you know about Linux distros?What do you know about Linux distros?
    linux has existed for nearly 30 years, this is a historic journey. if you are interested in the history of some of the major linux distributions, read the following article.
  • 8 small utilities for a better Linux experience8 small utilities for a better Linux experience
    linux is one of the most flexible operating systems you can use today. from the interface to the internal functions, you can customize almost everything on your linux pc.
  • 7 ways to run Linux software on Windows7 ways to run Linux software on Windows
    linux users want to run windows software on linux, whereas windows users want to use linux software. even if you are looking for a better development environment, more powerful command-line tools, you can run linux software without removing windows.
  • From today, owning Linux LPI certificate will be easier!From today, owning Linux LPI certificate will be easier!
    lpi (linux professional institute), a world leader in international linux certification for open source professionals, has officially entered the vietnamese market.
  • The 5 best Linux server distributionsThe 5 best Linux server distributions
    linux is one of the factors driving the ever-evolving internet platform today. in fact, more than 70% of all websites are powered by unix, of which linux accounts for 58%.