Instead of Antiword, maybe using LibreOffice parsers directly would solve the problem for parsing all kinds of the documents.