# Ddr::Extractor Generic file text and metadata extraction service. ## Installation Add this line to your application's Gemfile: gem 'ddr-extractor' And then execute: $ bundle Or install it yourself as: $ gem install ddr-extractor ## Usage ``` >> extractor = Ddr::Extraction::Extractor.new => # >> text = extractor.extract(:text, "spec/fixtures/sample.docx") => # >> puts text.read This is a sample document. >> metadata = extractor.extract(:metadata, "spec/fixtures/blue-devil.png") => # >> puts metadata.read 1.0 fmt/11 2014:11:12 12:24:18-05:00 /path/to/spec/fixtures/blue-devil.png blue-devil.png 75005 e6a5d16da2fbe65311952e2d8b04f069 1415813058000 Deflate/Inflate Deflate 200 200 normal* ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/ddr_extractor/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request