Method: Docsplit::ImageExtractor#extract
- Defined in:
- lib/docsplit/image_extractor.rb
#extract(pdfs, options) ⇒ Object
Extract a list of PDFs as rasterized page images, according to the configuration in options.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/docsplit/image_extractor.rb', line 13 def extract(pdfs, ) @pdfs = [pdfs].flatten () @pdfs.each do |pdf| previous = nil @sizes.each_with_index do |size, i| @formats.each {|format| convert(pdf, size, format, previous) } previous = size if @rolling end end end |