Seems like a no-brainer to switch to using tika as the default local extraction tool.
tika can extract many types of document content and can run on java 1.5+ (or even 1.4). see: http://lucene.apache.org/tika/formats.html
http://lucene.apache.org/tika/gettingstarted.html
The quickest pre-built tika is likely a Solr nightly such as:
http://people.apache.org/builds/lucene/solr/nightly/solr-2009-04-29.zip
look in apache-solr-nightly/example/solr/lib
I can, for example pull down a PDF file:
wget http://freesoftware.mit.edu/papers/lakhaniwolf.pdf
and extract the text as:
java -jar tika-0.3.jar -t lakhaniwolf.pdf
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | tika-attachments-449214-3.patch | 39.49 KB | pwolanin |
Comments
Comment #1
pwolanin commentedwouldn't you know... http://stackoverflow.com/questions/278868/calling-java-from-php-exec
Comment #2
pwolanin commentedAlso, seems that Java 5 on Mac OS 10.5 is missing some xml classes, so cannot decode docx files.
Switching to Java 6 seems to resolve this issue, and also seems to prevent the MAMP bug also.
Comment #3
pwolanin commentedSeems to be basically working. Here's the diff to the branch point showing new code committed to HEAD.