IRPCScanningAndOCR.OCRUploadedFile

View as Markdown

Vault API / standard write session

Starts an OCR job that converts the file of a stateless upload to a searchable PDF.

ServiceScanning and OCR MFiles.IRPCScanningAndOCR
gRPC method/MFiles.IRPCScanningAndOCR/OCRUploadedFile
HTTP (mf-http-grpc)POST /grpc/v1/ocruploaded-file
RequestOCRUploadedFileRequest
ResponseOCRUploadedFileResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: OCRUploadedFileRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
file_refstringThe file_ref of a stateless upload ended with FileUploadEnd, to be used as input for the OCR job.
source_file_extensionstringThe filename extension (without dot) of the source file. Required, as a file_ref has no file name.
typeOCROperationTypeOCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF or OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF; other types fail.Values: OCROPERATION_TYPE_NONE (0), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF (1), OCROPERATION_TYPE_RECOGNIZE_SPECIFIC_BLOCKS (2), OCROPERATION_TYPE_RECOGNIZE_ANY_BLOCKS (3), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS (4), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_ANY_BLOCKS (5), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF (6), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS (7), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_ANY_BLOCKS (8).
optionsOCROptionsOCR options to be used for this job. If unset, default settings are used.
options.languages[]repeated OCRLanguageTypeLanguages/character sets/dictionaries to be used as recognition hints. Can be unset.
options.ocr_automatic_language_detectionboolTrue if the OCR automatic language detection is to be used.

Response: OCRUploadedFileResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
job_idstringThe ID of the job, for GetOCRUploadedFileStatus.