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