Sha256: 59f1b7195a1ba2c370ffd410bba724d1a83c9fd3fe74f85853a4d906594b49da
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
require "poi" module DocImageExtract class Document include Java java_import "org.apache.poi.hwpf.HWPFDocument" java_import "java.io.FileInputStream" attr_reader :file def initialize file @file = file end def pictures document = HWPFDocument.new FileInputStream.new file pictures_table = document.get_pictures_table pictures_table.get_all_pictures end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doc_image_extract-0.0.1 | lib/doc_image_extract/document.rb |