Class: Xberg::ChunkingReasonOcrRequired
- Inherits:
-
Data
- Object
- Data
- Xberg::ChunkingReasonOcrRequired
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/xberg/native.rb
Overview
PDF requires OCR and is large.
Instance Attribute Summary collapse
-
#force_ocr ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#page_count ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #large_and_many_pages? ⇒ Boolean
- #large_file? ⇒ Boolean
- #many_pages? ⇒ Boolean
- #ocr_required? ⇒ Boolean
Instance Attribute Details
#force_ocr ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4424 4425 4426 |
# File 'lib/xberg/native.rb', line 4424 def force_ocr @force_ocr end |
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4424 4425 4426 |
# File 'lib/xberg/native.rb', line 4424 def page_count @page_count end |
Class Method Details
.from_hash(hash) ⇒ Object
4447 4448 4449 |
# File 'lib/xberg/native.rb', line 4447 def self.from_hash(hash) new(page_count: hash[:page_count] || hash["page_count"], force_ocr: hash[:force_ocr] || hash["force_ocr"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
4443 4444 4445 |
# File 'lib/xberg/native.rb', line 4443 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4437 |
# File 'lib/xberg/native.rb', line 4437 def large_file? = false |
#many_pages? ⇒ Boolean
4439 |
# File 'lib/xberg/native.rb', line 4439 def many_pages? = false |
#ocr_required? ⇒ Boolean
4441 |
# File 'lib/xberg/native.rb', line 4441 def ocr_required? = true |