Skip to content

Instantly share code, notes, and snippets.

@underwhelmed
Created February 12, 2013 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underwhelmed/4760432 to your computer and use it in GitHub Desktop.
Save underwhelmed/4760432 to your computer and use it in GitHub Desktop.
require 'docx'
d = Docx::Document.open('example.docx')
d.each_paragraph do |p|
puts d
end
# for the docx file stored on s3 amazon.
Docx::Document.open(open('http://S3-URL/original.docx',:ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment