Tüm Ürünler
Search
Belge Merkezi

:ExtractDocumentText

Son Güncelleme:Oct 02, 2026

Belgeden metin çıkarır.

Operation description

  • Bu API'yi kullanmadan önce, lütfen Akıllı Medya Yönetimi ürününün faturalandırma yöntemini ve fiyatlandırmasını tam olarak anladığınızdan emin olun.

  • Bu API'yi çağırmadan önce, mevcut bölgede kullanılabilir bir proje (Proje) olduğundan emin olun. Daha fazla bilgi için Proje Yönetimi bölümüne bakın.

  • Yaygın Word, Excel, PPT, PDF ve TXT belgelerini destekler.

  • Dosya boyutu 200 MB'ı aşmamalıdır. Çıkarılan düz metin dosyasının boyutu 2 MB'ı (yaklaşık 600.000 Çince karakter) aşmamalıdır.

Önemli Belge biçimi karmaşıksa veya metin hacmi çok büyükse zaman aşımı hatası oluşabilir. Bu tür senaryolarda, benzer işlevselliği elde etmek için CreateOfficeConversionTask API'sini kullanmanız ve çıktı biçimini txt olarak belirtmeniz önerilir.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

imm:ExtractDocumentText

none

*Project

acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

Proje adı. Nasıl elde edileceği hakkında bilgi için Proje Oluşturma bölümüne bakın.

immtest

SourceURI

string

Yes

Kaynak verilerin depolama adresi.

OSS adres kuralı oss://${Bucket}/${Object} şeklindedir; burada ${Bucket}, mevcut projeyle aynı bölgede bulunan OSS bucket'ının adıdır ve ${Object}, dosya uzantısı dahil dosyanın tam yoludur.

Önemli Şu anda yalnızca HTTP protokolü adresleri desteklenmektedir.

oss://test-bucket/test-object

SourceType

string

No

Kaynak verilerin uzantı türü. Varsayılan olarak, kaynak verilerin türü giriş nesnesinin uzantısına göre belirlenir. Giriş nesnesinin bir uzantısı olmadığında bu parametreyi ayarlayabilirsiniz. Geçerli değerler aşağıdaki gibidir:

  • Word belgeleri: doc, docx, wps, wpss, docm, dotm, dot, dotx, html

  • Sunum belgeleri (PPT): pptx, ppt, pot, potx, pps, ppsx, dps, dpt, pptm, potm, ppsm, dpss

  • Elektronik tablo belgeleri (Excel): xls, xlt, et, ett, xlsx, xltx, csv, xlsb, xlsm, xltm, ets

  • PDF belgeleri: pdf

docx

CredentialConfig CredentialConfig

No

Özel bir gereksinim yoksa boş bırakın.

Zincirleme yetkilendirme yapılandırması isteğe bağlıdır. Daha fazla bilgi için Diğer Varlık Kaynaklarına Erişmek İçin Zincirleme Yetkilendirme Kullanma bölümüne bakın.

Response elements

Element

Type

Description

Example

object

Yanıt gövdesi yapısı.

RequestId

string

İstek kimliği.

94D6F994-E298-037E-8E8B-0090F27*****

DocumentText

string

Belgenin metin içeriği.

Test content

Examples

Success response

JSON format

{
  "RequestId": "94D6F994-E298-037E-8E8B-0090F27*****",
  "DocumentText": "Test content."
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.