Class: PdfServices::Ocr::Operation

Inherits:
InternalExternalOperation::Operation show all
Defined in:
lib/pdfservices/operations/ocr.rb

Direct Known Subclasses

External, Internal

Constant Summary collapse

OPERATION_ENDPOINT =
"#{BASE_ENDPOINT}ocr".freeze
OCR_LANGS =
%w[
  da-DK lt-LT sl-SI el-GR ru-RU en-US zh-HK hu-HU et-EE
  pt-BR uk-UA nb-NO pl-PL lv-LV fi-FI ja-JP es-ES bg-BG
  en-GB cs-CZ mt-MT de-DE hr-HR sk-SK sr-SR ca-CA mk-MK
  ko-KR de-CH nl-NL zh-CN sv-SE it-IT no-NO tr-TR fr-FR
  ro-RO iw-IL
].freeze
OCR_TYPES =
%w[searchable_image searchable_image_exact].freeze

Constants inherited from Base::Operation

Base::Operation::ASSETS_ENDPOINT, Base::Operation::BASE_ENDPOINT, Base::Operation::STATUS

Method Summary

Methods inherited from InternalExternalOperation::Operation

#execute

Methods inherited from Base::Operation

#handle_response, #initialize, #poll_document_result, #upload_asset

Constructor Details

This class inherits a constructor from PdfServices::Base::Operation