IAIDocProcessingService.TranslateAsync(PdfDocumentProcessor, PdfDocumentPosition, PdfDocumentPosition, CultureInfo, CancellationToken) Method
Translates text into a specific language with AI-powered translation services.
Namespace: DevExpress.AIIntegration.Docs
Assembly: DevExpress.AIIntegration.Docs.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Docs
Declaration
Task<string> TranslateAsync(
PdfDocumentProcessor processor,
PdfDocumentPosition startPosition,
PdfDocumentPosition endPosition,
CultureInfo culture,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
| Name | Type | Description |
|---|---|---|
| processor | PdfDocumentProcessor | The |
| startPosition | PdfDocumentPosition | The start position of a content that should be translated. |
| endPosition | PdfDocumentPosition | The end position of a content that should be translated. |
| culture | CultureInfo | An object that specifies culture settings applied during translation. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| cancellationToken | CancellationToken | null | The token that cancels the task. |
Returns
| Type | Description |
|---|---|
| Task<String> | The response that contains AI-generated translation.’ |
See Also