devexpress-office-file-api-pdf-new

Create, modify, secure, and print PDF documents using the DevExpress.Docs.Pdf .NET API.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill devexpress-office-file-api-pdf-new-aleksaristic216
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devexpress-office-file-api-pdf-new
Source: https://github.com/AleksaRistic216/dotnet-playground/tree/main/.github/skills/office-file-api/devexpress-office-file-api-pdf-new
Command: npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill devexpress-office-file-api-pdf-new-aleksaristic216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires DevExpress.Docs.Pdf, and includes references (resource) components.

What problem does it solve? .NET developers need to programmatically generate, edit, secure, and print PDF documents without manual layout work, and this Skill provides guided instructions and code patterns for the new DevExpress.Docs.Pdf object-oriented document API. ## Core Features & Use Cases - PDF Creation and Editing: Build multi-page documents with text, images, shapes, and reusable templates, or load and modify existing PDFs including page reordering, merging, rotation, and resizing. - Forms, Redaction, and Security: Create and fill AcroForm fields, search and permanently redact sensitive text, encrypt with AES-128/AES-256 and granular permissions, and build tagged PDF/UA-accessible documents via the structure tree. - Use Case: A developer needs to generate a quarterly sales report PDF, watermark every page as DRAFT, redact confidential figures, and encrypt the result with an owner password before distribution. ## Quick Start Ask the assistant to create a new PDF document with a title, body text, and an image using the DevExpress.Docs.Pdf library in a .NET 8 console application.

Frequently Asked Questions about devexpress-office-file-api-pdf-new

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a PDF document in .NET with DevExpress?

Install the DevExpress.Docs.Pdf NuGet package, create a PdfDocument instance, add pages via Pages.Add(DXPaperKind.A4), then add TextFragment or ImageFragment objects to each page. Call Save with a FileStream to write the output file.

How to migrate from PdfDocumentProcessor to the new PdfDocument API?

Replace the DevExpress.Document.Processor package with DevExpress.Docs.Pdf and change the namespace from DevExpress.Pdf to DevExpress.Docs.Pdf. PdfDocumentProcessor maps to PdfDocument, and facade types map to typed classes like FreeTextAnnotation. Both namespaces can coexist using aliases.

Does DevExpress.Docs.Pdf support PDF encryption and permissions?

Yes, PdfDocument.Encrypt accepts EncryptionOptions with owner and user passwords, AES-128 or AES-256 algorithms, and granular permissions for printing, modification, data extraction, and interactivity. RemoveEncryption removes protection after opening with the password.

Can I redact sensitive text from a PDF programmatically?

Yes, use PdfDocument.FindText to locate matches, build RedactionAnnotation objects from the match rectangles, then call ApplyRedaction to permanently remove the content. Redaction is irreversible, so save to a new output file.

Is the new DevExpress PDF API ready for production use?

No, DevExpress.Docs.Pdf is a Community Technology Preview and should not be used in mission-critical production applications. The legacy DevExpress.Pdf PdfDocumentProcessor API remains fully supported for production scenarios.

Why is my text positioned incorrectly when adding it to a PDF page?

The PDF coordinate system has its origin at the bottom-left corner with Y increasing upward, measured in points. For an A4 page (841.89 points tall), a Y value of 770 places content near the top of the page.