Class: Mindee::Input::Source::FileInputSource
- Inherits:
-
LocalInputSource
- Object
- LocalInputSource
- Mindee::Input::Source::FileInputSource
- Defined in:
- lib/mindee/input/sources.rb
Overview
Load a document from a file handle.
Instance Attribute Summary
Attributes inherited from LocalInputSource
#file_mimetype, #filename, #io_stream
Instance Method Summary collapse
-
#initialize(input_file, filename, fix_pdf: false) ⇒ FileInputSource
constructor
A new instance of FileInputSource.
Methods inherited from LocalInputSource
#compress!, #count_pdf_pages, #pdf?, #process_pdf, #read_document, #rescue_broken_pdf, #source_text?
Constructor Details
#initialize(input_file, filename, fix_pdf: false) ⇒ FileInputSource
Returns a new instance of FileInputSource.
216 217 218 219 |
# File 'lib/mindee/input/sources.rb', line 216 def initialize(input_file, filename, fix_pdf: false) io_stream = input_file super(io_stream, filename, fix_pdf: fix_pdf) end |