Module: ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::Ocr

Extended by:
Internal::Type::Union
Defined in:
lib/context_dev/models/batch_submit_params.rb,
sig/context_dev/models/batch_submit_params.rbs

Overview

When true, OCR the selected PDF pages that have no usable text layer (scans), replacing each recovered page's text with the OCR result while pages with a real text layer keep it. Billed at 1 credit per page OCR actually recovered, on top of the base request cost. When false, no OCR runs.

See Also:

  • ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf#ocr

collapse

TRUE =

Returns:

  • (:true)
:true
FALSE =

Returns:

  • (:false)
:false

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Boolean, Symbol)

Returns:

  • (Array(Boolean, Symbol))


1048
1049
1050
1051
1052
1053
1054
1055
# File 'lib/context_dev/models/batch_submit_params.rb', line 1048

define_sorbet_constant!(:Variants) do
  T.type_alias do
    T.any(
      T::Boolean,
      ContextDev::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::Ocr::TaggedSymbol
    )
  end
end

Instance Method Details

#self?.variants::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr]

Returns:

  • (::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr])


1296
# File 'sig/context_dev/models/batch_submit_params.rbs', line 1296

def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr]