DevExpress.AIIntegration.Docs
26.1.3
Prefix Reserved
dotnet add package DevExpress.AIIntegration.Docs --version 26.1.3
NuGet\Install-Package DevExpress.AIIntegration.Docs -Version 26.1.3
<PackageReference Include="DevExpress.AIIntegration.Docs" Version="26.1.3" />
<PackageVersion Include="DevExpress.AIIntegration.Docs" Version="26.1.3" />
<PackageReference Include="DevExpress.AIIntegration.Docs" />
paket add DevExpress.AIIntegration.Docs --version 26.1.3
#r "nuget: DevExpress.AIIntegration.Docs, 26.1.3"
#:package DevExpress.AIIntegration.Docs@26.1.3
#addin nuget:?package=DevExpress.AIIntegration.Docs&version=26.1.3
#tool nuget:?package=DevExpress.AIIntegration.Docs&version=26.1.3
AI-powered Extensions for DevExpress Document Processing APIs
DevExpress Document Processing APIs include backend-ready AI extensions for PDF, Word, and PowerPoint documents.
- Summarize Documents: Generate concise summaries for reports, contracts, or presentations.
- Translate & Proofread: Translate documents or fix grammar and spelling (preserve layout and formatting).
- Ask Questions: Query PDF, Word, or PowerPoint files to extract insights.
These AI-powered extensions communicate with language models via the Microsoft.Extensions.AI library and its IChatClient interface. You can use cloud-based services (Azure OpenAI, OpenAI, Google Gemini) or local models (Ollama, ONNX Runtime, AI Foundry Local).
Examples
Install NuGet packages: DevExpress Extensions
Install the NuGet package that contains DevExpress AI-powered Extensions: DevExpress.AIIntegration.Docs.
dotnet add package DevExpress.AIIntegration.Docs
Install NuGet packages: AI Service
Install NuGet packages required by your AI service of choice. This example uses Azure OpenAI and requires the following packages:
dotnet add package Azure.AI.OpenAI --version 2.2.0-beta.4
dotnet add package Microsoft.Extensions.AI.OpenAI --version 9.5.0-preview.1.25265.7
To see package lists required by different AI Services, refer to the following help topic: AI Extensions - Prerequisites.
Register the AI Client and DevExpress AI-powered Document Processing Service
using Azure.AI.OpenAI;
using DevExpress.AIIntegration;
using Microsoft.Extensions.AI;
using System.ClientModel;
using DevExpress.XtraRichEdit;
using DevExpress.Docs.Presentation;
// Obtain Azure OpenAI credentials
string azureOpenAIEndpoint = Environment.GetEnvironmentVariable({YOUR_AZURE_ENDPOINT});
string azureOpenAIKey = Environment.GetEnvironmentVariable({YOUR_AZURE_OPENAI_APIKEY});
// Register Azure OpenAI client
IChatClient client = new AzureOpenAIClient(new Uri(azureOpenAIEndpoint),
new ApiKeyCredential(azureOpenAIKey)).GetChatClient("gpt-4o-mini").AsIChatClient();
AIExtensionsContainerDefault defaultAIExtensionsContainer = AIExtensionsContainerConsole.CreateDefaultAIExtensionContainer(client);
// Create AI-powered document service
var aiService = defaultAIExtensionsContainer.CreateAIDocProcessingService();
Translate a Word Document
// Initialize a Word document processor and upload a file
var wordProcessor = new RichEditDocumentServer();
wordProcessor.LoadDocument("Document.docx");
// Translate the document and save the result
await aiService.TranslateAsync(wordProcessor, new CultureInfo("fr-FR"), CancellationToken.None);
MemoryStream translatedDocStream = new MemoryStream();
wordProcessor.SaveDocument(translatedDocStream, DocumentFormat.OpenXml);
Translate a PowerPoint Presentation
// Initialize a Presentation object and upload a file
FileStream fs = File.OpenRead("presentation.pptx");
var presentation = new Presentation(fs);
// Translate the presentation and save the result
await aiService.TranslateAsync(presentation, new CultureInfo("fr-FR"), CancellationToken.None);
MemoryStream translatedPresentationStream = new MemoryStream();
presentation.SaveDocument(translatedPresentationStream, DocumentFormat.Pptx);
Evaluation Period, Pricing Options, and Licensing Terms
Whether using a 30-day evaluation version or a registered product, you must register your DevExpress.com license key on your machine. To obtain your license key, log in to the DevExpress Download Manager. Use your existing DevExpress.com account or create a new account for free. For detailed instructions, see License Key for DevExpress Products.
Once you have obtained and registered your license key, simply install this package to start a 30-day evaluation period.
To continue using DevExpress products after your trial period ends, purchase a license. This package is included in the following commercial subscriptions:
See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.
After you purchase a license, download and register your up-to-date DevExpress license key to remove licensing warnings and trial messages.
Related Components/Packages
DevExpress.Document.Processor - DevExpress Document Processing APIs for Word, Excel, and PDF documents.
dotnet add package DevExpress.Document.Processor
DevExpress.Docs.Presentation - DevExpress Document Processing APIs for PowerPoint presentations.
dotnet add package DevExpress.Docs.Presentation
DevExpress.Docs.Barcode - DevExpress Barcode Generation APIs.
dotnet add package DevExpress.Docs.Barcode
DevExpress.Docs.Pdf - New DevExpress Document Processing APIs for advanced PDF generation and editing scenarios.
dotnet add package DevExpress.Docs.Pdf
Demos
Documentation
Useful Online Resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- DevExpress.AIIntegration (= 26.1.3)
- DevExpress.AIIntegration.SemanticSearch (= 26.1.3)
- DevExpress.Data (= 26.1.3)
- DevExpress.Docs.Core (= 26.1.3)
- DevExpress.Docs.Presentation (= 26.1.3)
- DevExpress.Document.Processor (= 26.1.3)
- DevExpress.Office.Core (= 26.1.3)
- DevExpress.Pdf.Core (= 26.1.3)
- DevExpress.RichEdit.Core (= 26.1.3)
- Microsoft.Extensions.AI (>= 9.7.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
-
net8.0
- DevExpress.AIIntegration (= 26.1.3)
- DevExpress.AIIntegration.SemanticSearch (= 26.1.3)
- DevExpress.Data (= 26.1.3)
- DevExpress.Docs.Core (= 26.1.3)
- DevExpress.Docs.Presentation (= 26.1.3)
- DevExpress.Document.Processor (= 26.1.3)
- DevExpress.Office.Core (= 26.1.3)
- DevExpress.Pdf.Core (= 26.1.3)
- DevExpress.RichEdit.Core (= 26.1.3)
- Microsoft.Extensions.AI (>= 9.7.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.