Antiword

Submit command line tools that you find here.
Post Reply
Message
Author
User avatar
lintalist
Posts: 434
Joined: Sat Apr 19, 2014 12:52 am
Contact:

Antiword

#1 Post by lintalist »

Antiword is a free MS Word reader for a variety of platforms incl. DOS, Linux, RISC OS, FreeBSD, BeOS, OS/2, Mac OS X, Amiga, VMS, NetWare, Plan9, EPOC, Zaurus PDA, MorphOS, Tru64/OSF, Minix, Solaris. Antiword converts the binary files from Word 2, 6, 7, 97, 2000, 2002 and 2003 to plain text and to PostScript TM.

v0.37 (Windows)
21 Oct 2005, windows exe from 2008

Website: http://www.winfield.demon.nl/
Download: Windows available via https://www.softpedia.com/get/Office-to ... word.shtml
Download: 32bit DOS http://www.winfield.demon.nl/djgpp/antiword.zip (16bit! also available)

Installation is a bit tricky (for portable):
  • Download zip and unpack to a folder, if you make it DRIVE:\antiword, it will work directly, if you DO NOT place it in the root\folder it can't find specific files it may need, so
    • In your antiword folder, create a new folder named "antiword" (e.g. "e:\myApps\antiword\antiword\")
    • Move all *.txt files to that folder (8859-11.txt, cp864.txt, MacCyrillic.txt, etc about 30 or so - these are the code pages)
    • Create a small batch file like so - extend as needed e.g. %1 being the code page, %2 being the file you want to convert etc, example here to be placed in same folder as antiword.exe

      Code: Select all

       @ECHO OFF
      SET "home=%cd%"
      antiword -m cp850.txt %1 > %1.txt
      
Reason for the "home" variable above from the docs
The Windows version looks for its mapping files in %HOME%\antiword if HOME is set and in C:\antiword if HOME is not set.
Batch file example will convert testfile.doc to testfile.doc.txt

Post Reply