Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JARS = '/whatever/path/to/jars'
- Dir["#{JARS}/*jar"].each {|j| require j}
- require "java"
- import org.apache.poi.extractor.ExtractorFactory
- ex = ExtractorFactory.createExtractor(java.io.FileInputStream.new('pwnage.doc'))
- puts ex.text
Add Comment
Please, Sign In to add comment