Target Platform/Framework: Desktop, Web, Mobile DevExpress Product Libraries Used: .NET Office File API (https://www.devexpress.com/officefileapi) Available in the following DevExpress Subscription(s): Universal, Office File API
Install
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
Documentation | Demo | What's New | Blog | Support & Feedback
DevExpress Document Processing APIs for .NET
This cross-platform .NET library allow you to generate and manage documents and barcodes in code:
- Work with rich text docs (Word), spreadsheets (Excel), presentations (PowerPoint), and PDF files.
- Generate, edit, sign, convert, and print documents.
- Build applications without Microsoft Office or Adobe dependencies.
- Generate barcodes.
DevExpress Document Processing APIs are compatible with the following operating systems and platforms:
- Windows, Linux, macOS
- .NET 8/9/10, .NET Framework 4.6.2+
- Azure, AWS, Docker
Included Components
Word Processing Document API
The DevExpress Word Processing Document API allows you to manage rich text documents:
- Generate or edit document content
- Specify character and paragraph formatting
- Protect documents
- Use Mail Merge to create personalized messages and reports
- Print and export
- And much more
Get Started with DevExpress Word Processing Document API
//Load a Word file, add text watermark, and export to PDF
using var wordProcessor = new RichEditDocumentServer();
wordProcessor.LoadDocument("wordFile.docx");
wordProcessor.Document.WatermarkManager.SetText("CONFIDENTIAL");
MemoryStream pdfStream = new MemoryStream();
wordProcessor.ExportToPdf(pdfStream);
PDF Document API
The DevExpress PDF Document API allows you to manage PDF documents in code:
- Generate or edit document content
- Merge or split files
- Password-protect documents
- Digitally sign PDF files
- And much more
Get Started with DevExpress PDF Document API
//Load a PDF file, encrypt it, and specify access permissions
using var pdfProcessor = new PdfDocumentProcessor();
pdfProcessor.LoadDocument("pdfDocument.pdf");
PdfEncryptionOptions encryptionOptions = new PdfEncryptionOptions();
encryptionOptions.DataExtractionPermissions = PdfDocumentDataExtractionPermissions.NotAllowed;
encryptionOptions.OwnerPasswordString = "OwnerPassword";
encryptionOptions.UserPasswordString = "UserPassword";
encryptionOptions.Algorithm = PdfEncryptionAlgorithm.AES256;
MemoryStream pdfEncryptedStream = new MemoryStream();
pdfProcessor.SaveDocument(pdfEncryptedStream, new PdfSaveOptions() { EncryptionOptions = encryptionOptions });
Excel Spreadsheet API
The DevExpress Spreadsheet Document API allows you to manage Excel files in code:
- Generate or edit document content
- Analyze and visualize data
- Add formulas to cells
- Password-protect documents
- Digitally sign spreadsheets
- Print and export worksheets
- And much more
Get Started with DevExpress Spreadsheet API
//Load an Excel workbook, calculate formulas, and export to PDF
using var workbook = new Workbook();
workbook.LoadDocument("spreadsheetFile.xlsx");
workbook.Calculate();
MemoryStream pdfStream = new MemoryStream();
workbook.ExportToPdf(pdfStream);
Barcode Generation API
The DevExpress Barcode Generation API allows you to generate barcodes:
- Create 1D or 2D barcodes - over 30 types total
- Change orientation, color, quality, and other settings
- Export to image or PDF
- And more
Get Started with DevExpress Barcode API
Code Example
Install the NuGet package
dotnet add package DevExpress.Document.Processor
Convert multiple files to PDF and merge into a single file
//Load a Word file and export to PDF
using var wordProcessor = new RichEditDocumentServer();
wordProcessor.LoadDocument("wordFile.docx");
MemoryStream docStream1 = new MemoryStream();
wordProcessor.ExportToPdf(docStream1);
docStream1.Position = 0;
//Load an Excel workbook and export to PDF
using var workbook = new Workbook();
workbook.LoadDocument("spreadsheetFile.xlsx");
MemoryStream docStream2 = new MemoryStream();
workbook.ExportToPdf(docStream2);
docStream2.Position = 0;
//Merge two PDF documents into a single file
using var pdfProcessor = new PdfDocumentProcessor();
pdfProcessor.CreateEmptyDocument();
pdfProcessor.AppendDocument(docStream1);
pdfProcessor.AppendDocument(docStream2);
MemoryStream mergedPdfStream = new MemoryStream();
pdfProcessor.SaveDocument(mergedPdfStream);
mergedPdfStream.Position = 0;
Licensing
DevExpress Document Processing APIs are included in the following DevExpress subscriptions:
Free 30-day evaluation period is available.
Related Components/Packages
DevExpres.Docs.Presentation - DevExpress Document Processing APIs for PowerPoint presentations.
dotnet add package DevExpress.Docs.Presentation
DevExpress.AIIntegration.Docs - AI-powered Extensions for DevExpress Document Processing APIs.
dotnet add package DevExpress.AIIntegration.Docs
Documentation | Demo | What's New | Blog | Support & Feedback
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.