Class: Proselytism::Converters::PdfImages

Inherits:
Base
  • Object
show all
Defined in:
lib/proselytism/converters/pdf_images.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Methods inherited from Base

#convert, #destination_file_path, #execute

Instance Method Details

#perform(origin, options = {}) ⇒ Object



7
8
9
10
11
# File 'lib/proselytism/converters/pdf_images.rb', line 7

def perform(origin, options={})
  command = "cd #{options[:dir]} && pdfimages #{origin} 'img' 2>&1"
  execute command
  Dir.glob(File.join(options[:dir], '*'))
end