A simple Ruby wrapper around the antiword command line utility for converting Docs to text.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README.textile
Rakefile
init.rb

README.textile

antiwordr

Wrapper around the command line tool antiword which converts Word Document (97/2003) to text or Docbook.

requirements

Just antiword, Ruby and a few gems (1.8.6+ as far as I know).

using

Install with gem install antiwordr

http://gemcutter.org/gems/antiwordr

require 'antiwordr'
require 'nokogiri'
file = DocFilePath.new([Path to Source PDF])
string = file.convert()
xml = file.convert_to_docbook()
doc = file.convert_to_docbook_document()

See included test cases for more usage examples.

license

MIT (See included MIT-LICENSE)