class DocImageExtract::Reader::Xwpf
Attributes
file[R]
Public Class Methods
new(file)
click to toggle source
# File lib/doc_image_extract/reader/xwpf.rb, line 11 def initialize(file) @file = file end
Public Instance Methods
pictures()
click to toggle source
# File lib/doc_image_extract/reader/xwpf.rb, line 15 def pictures document = XWPFDocument.new FileInputStream.new file pictures = document.get_all_pictures pictures.map do |picture| filename = picture.get_file_name data = picture.get_data Picture.new filename, data end end