Class: Mindee::PDF::ExtractedPDFs

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

Overview

List of extracted PDFs.

Instance Method Summary collapse

Instance Method Details

#save_all_to_disk(output_path) ⇒ void

This method returns an undefined value.

Save all extracted PDFs to disk.

Parameters:

  • output_path (String, Pathname)

    Directory path to save the extracted PDFs to.

  • (String, Pathname)


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