Class: Mindee::PDF::ExtractedPDFs

Inherits:
Array
  • Object
show all
Defined in:
lib/mindee/pdf/extracted_pdfs.rb

Overview

List of extracted PDFs.

Instance Method Summary collapse

Instance Method Details

#save_all_to_disk(output_path) ⇒ Object

Save all extracted PDFs to disk.

Parameters:

  • output_path (String, Pathname)

    Directory path to save the extracted PDFs to.



13
14
15
16
17
# File 'lib/mindee/pdf/extracted_pdfs.rb', line 13

def save_all_to_disk(output_path)
  each do |pdf|
    pdf.write_to_file(File.join(output_path.to_s, pdf.filename))
  end
end