Method: Mindee::Client#source_from_path

Defined in:
lib/mindee/client.rb

#source_from_path(input_path, repair_pdf: false) ⇒ Mindee::Input::Source::PathInputSource

Load a document from an absolute path, as a string.

Parameters:

  • input_path (String)

    Path of file to open

  • repair_pdf (bool) (defaults to: false)

    Attempts to fix broken pdf if true

Returns:



341
342
343
# File 'lib/mindee/client.rb', line 341

def source_from_path(input_path, repair_pdf: false)
  Input::Source::PathInputSource.new(input_path, repair_pdf: repair_pdf)
end