Method: Mindee::Client#source_from_b64string

Defined in:
lib/mindee/client.rb

#source_from_b64string(base64_string, filename, repair_pdf: false) ⇒ Mindee::Input::Source::Base64InputSource

Load a document from a base64 encoded string.

Parameters:

  • base64_string (String)

    Input to parse as base64 string

  • filename (String)

    The name of the file (without the path)

  • repair_pdf (bool) (defaults to: false)

    Attempts to fix broken pdf if true

Returns:



359
360
361
# File 'lib/mindee/client.rb', line 359

def source_from_b64string(base64_string, filename, repair_pdf: false)
  Input::Source::Base64InputSource.new(base64_string, filename, repair_pdf: repair_pdf)
end