How to use Antiword on Linux

How to use Antiword on Linux


To open Word document files, Linux users can use LibreOffice. However, not all Linux computers can open such heavy graphics applications. In this case, the alternative solution is to use Antiword to open the document file. The following article will show you how to use Antiword on Taimienphi.vn offline.


Antiword is an ideal alternative to LibreOffice, running on Terminals, is the perfect choice for computers or systems that operate “slowly” without a graphical environment.

Refer to the following article of Taimienphi.vn 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.

1. The main features of Antiword

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

– Plain text
– Text format
– PDF
– Postscript
– XML ​​(only DocBook is 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 comes with a package management system, you can search Antiword in one of the archives.

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

make

sudo make install

4. Using Antiword on Linux

In the instructions below, Taimienphi.vn uses the example of resume (resume) as a sample document. When opening this document in LibreOffice, it looks like the following:

how to use antiword on linux 2

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

antiword resume.doc

how to use antiword on linux 3

As you can see, the default command does not preserve the document format such as font size, italics and underlines, but the text looks easier to read.

To display the specified information, we use the “-f” flag in the command:

antiword -f resume.doc

how to use antiword on linux 4

The above command does not display in the correct WYSIWYG format, rather it displays the same syntax as the markup. Such as the underlined text it displays as _ underline text_ and bold text with an asterisk * text in bold *.

To convert a Word document into a PDF file, we must specify the paper size using flags “-a”. Antiword supports paper sizes including: 10×14, a3, a4, a5, b4, b5, folio, letters, notes, four sizes, small format.

If desired, you can use the same paper size when converting to Postscript documents using flags “-p”.

For the following example, convert the document into a small PDF format:

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

Here is the resulting PDF file shown in Okular:

how to use antiword on linux 5

The underline and hyperlink in email addresses are no longer available, overall the transition was successful.

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

The following example will convert the document to DocBook format:

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

The conversion process will retain the metadata, including author name and document creation date. The raw XML format has the following form:

how to use antiword on linux 6

The DocBook file in LibreOffice looks like this:

how to use antiword on linux 7

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

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

The article above Taimienphi.vn has just taught you how to use Antiword on Linux. In addition, readers can refer to some articles already on Taimienphi.vn to learn how to install Microsoft Office on Linux.

https://thuthuat.taimienphi.vn/cach-su-dung-antiword-tren-linux-45650n.aspx
Refer to the article using Telegram on Linux commands, this is a popular messaging application based on cloud platforms, Use Telegram on Linux commands is a difference of the linux operating system.

.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *