IRPCScanningAndOCR.GetOCRUploadedFileStatus

View as Markdown

Vault API / standard write session

Gets the state of an OCR job started with OCRUploadedFile and, when it has completed, its result as a file_ref. Optionally requests the cancellation of the job.

ServiceScanning and OCR MFiles.IRPCScanningAndOCR
gRPC method/MFiles.IRPCScanningAndOCR/GetOCRUploadedFileStatus
HTTP (mf-http-grpc)POST /grpc/v1/get-ocruploaded-file-status
RequestGetOCRUploadedFileStatusRequest
ResponseGetOCRUploadedFileStatusResponse
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: GetOCRUploadedFileStatusRequest

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 from OCRUploadedFile.
cancelboolTrue to request the cancellation of the job. The returned state can still be queued or running until the job has stopped.

Response: GetOCRUploadedFileStatusResponse

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

FieldTypeDescription
stateOCRUploadedFileStateThe state of the job.Values: OCRUPLOADED_FILE_STATE_UNSPECIFIED (0), OCRUPLOADED_FILE_STATE_QUEUED (1), OCRUPLOADED_FILE_STATE_RUNNING (2), OCRUPLOADED_FILE_STATE_COMPLETED (3), OCRUPLOADED_FILE_STATE_FAILED (4), OCRUPLOADED_FILE_STATE_CANCELED (5).
pages_totaluint32The number of pages to process. Zero if not known yet.
pages_completeduint32The number of pages processed.
result_file_refstringIf the state is completed, the file_ref of the searchable PDF, as a stateless upload that can be attached like an upload ended with FileUploadEnd. Otherwise empty.
result_file_sizeint64If the state is completed, the size of the searchable PDF in bytes. Otherwise zero.
error_codeint32If the state is failed, the M-Files error code of the job; otherwise 0.
error_messagestringIf the state is failed, the error message of the job. Otherwise empty.